Learn R Programming

CDSE (version 0.2.1)

SeasonalFilter: Filter image catalog for seasonal images

Description

Filters image catalog entries that fall in the season of interest - dates between from day/month and to day/month for all years in the from - to time range.

Usage

SeasonalFilter(catalog, from, to)

Value

A data.frame or a sf object, depending on the type of the input.

Arguments

catalog

data.frame or sf object as the one produced by a call to SearchCatalog

from

start of the season of interest.

to

end of the season of interest.

The from and to arguments can be either Date or character that can be converted to date by as.Date. Open intervals are not allowed (both from and to must be valid dates).

See Also

SearchCatalog, SeasonalTimerange

Examples

Run this code
if (FALSE) {
dsn <- system.file("extdata", "centralpark.geojson", package = "CDSE")
aoi <- sf::read_sf(dsn, as_tibble = FALSE)
all_images <- SearchCatalog(aoi = aoi, from = "2021-06-01", to = "2023-08-31",
    collection = "sentinel-2-l2a", with_geometry = TRUE, client = OAuthClient)
sesonal_images <- SeasonalFilter(all_images, from = "2021-06-01", to = "2023-08-31")
}

Run the code above in your browser using DataLab