Skip to content

Sentinel-2 2025 images #96

@francodanilo

Description

@francodanilo

When I´m using the function get_sentinel2_imagery() using a 2024 date range it works fine, but when I use a 2025 date range it is not working.

I need some help to understand why and how to solve.

Thanks.

library(rsi)

aoi <- sf::st_point(c(-48.912131, -22.080410))
aoi <- sf::st_set_crs(sf::st_sfc(aoi), 4326)
aoi <- sf::st_buffer(sf::st_transform(aoi, 5880), 100)

#It's working  
sentinel_tmp <- get_sentinel2_imagery(aoi,
                                      start_date = "2024-06-01", # date range in 2024
                                      end_date = "2024-06-15",
                                      asset_names     = rsi::sentinel2_band_mapping$planetary_computer_v1[c("B04","B08")],
                                      output_filename = glue::glue("{tempdir()}/sentinel.tif"))

#It is NOT working
sentinel_tmp2 <- get_sentinel2_imagery(aoi,
                                      start_date = "2025-05-01", # date range in 2025
                                      end_date = "2025-05-15",
                                      asset_names     = rsi::sentinel2_band_mapping$planetary_computer_v1[c("B04","B08")],
                                      output_filename = glue::glue("{tempdir()}/sentinel.tif"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions