This function checks the input data, ensuring that the required date and carbon pool exist, and that the site coordinates are valid.
Arguments
- ensemble_data
List where each element is a data.frame indexed by date.
- site_coords
A data.frame with `lon` and `lat` columns, or an sf object with point geometries.
- date
Date. The date for the run, which must occur within `ensemble_data`.
- carbon_pool
Character. Carbon pool of interest. Name must match a column in `ensemble_data`.