Filters an fdir object to find the required raster files
Only used in get_raster(). Outsorced it to a function in order to
modularize get_raster() and make it easier to debug.
fdir_filter(fdir, epsg, scale_level, xmin, xmax, ymin, ymax, year = NULL, name = "")
| fdir | A dataframe or sf object from |
|---|---|
| xmin, xmax, ymin, ymax | Integers specyfing the extent of the desired raster |
| year | Optional integer specyfing the year from which data is needed |
| scale | level integer specyfing the scale level of the raster |