bcgov / climr

An R package for downscaling monthly climate data for North America
https://bcgov.github.io/climr/
16 stars 5 forks source link

Allow user to supply a raster/polygon shapefile instead of table of point locations #239

Open CeresBarros opened 6 months ago

CeresBarros commented 6 months ago

It would be great that climr functions (e.g. climr_downscale) accepted a polygon shapefile or a raster layer instead of a table of point locations.

things to consider:

note that in options 2 and 3, the attributes of the target raster (e.g. resolution, projection) could differ from the DEM's

kdaust commented 6 months ago

Agreed. Specifically for the raster option, it would be worth potentially having the internal functions use terra direction instead of data.table, e.g. as in https://github.com/bcgov/climr/issues/84#issue-1899148480