
Build batched point-location table from a study area
create_locations_df.RdExtracts the lon-lat / elevation of every cell in elev that overlaps
studyArea, tags each cell with its containing polygon's id value
(column EcoID) and a numeric BatchID, and splits into a list of
batch_size-row data frames suitable for chunked dispatch through
get_clim_daily().
Arguments
- elev
SpatRasterof elevations in lon-lat CRS (typically fromget_elevation_rast()).- studyArea
sforSpatVectorpolygons object delineating the area of interest.- id
character. Name of the field in
studyAreaidentifying ecoregions (e.g."PolyID").- batch_size
integer. Maximum cells per batch. Default
1000.
Value
A list of data frames with columns ID, Longitude, Latitude,
Elevation, EcoID, BatchID (one element per batch).