This function reads and checks the input data, ensuring that the required date and carbon pool exist, and that the site coordinates are valid.
Arguments
- data_path
Character. File path for .rds containing ensemble data.
- coords_path
Character. File path for .csv file containing the site coordinates, with columns named "lon" and "lat".
- date
Date. If SDA site run, format is yyyy/mm/dd; if NEON, yyyy-mm-dd. Restricted to years within the file supplied to 'data_path'.
- carbon_pool
Character. Carbon pool of interest. Name must match the carbon pool name found within the file supplied to 'data_path'.
Value
A list containing The read .rds data , The cleaned site coordinates, and the preprocessed carbon data.