Skip to contents

Wraps .fetch_clim_monthly_batch() and writes the result to an Arrow CSV dataset under path/Climatic_Monthly/<studyArea_hash>/<rcp>_<clim_model>/, partitioned by YEAR/BatchID; existing partitions are detected via file.exists() and skipped, so re-runs are cheap. For the SHARED global-id store (cross-study-area reuse) use prep_monthly_weather_biosim()'s ref_grid path instead.

Usage

get_clim_monthly(
  locations_batch,
  year,
  studyArea_hash,
  path = .climateCachePath(),
  rcp = "RCP45",
  clim_model = "RCM4"
)

Arguments

locations_batch

list whose first element is a data frame with ID, Latitude, Longitude, Elevation, EcoID, BatchID (one element of create_locations_df()'s output, wrapped in a list).

year

integer single calendar year to fetch.

studyArea_hash

character. Short study-area hash used as a cache subdirectory.

path

character. Directory for the Climatic_Monthly/ dataset (default: package climate cache).

rcp, clim_model

BioSIM scenario (see get_clim_daily() for the choice sets).

Value

Path (character) to the partition CSV for (year, BatchID).