This script generates NetCDF input files for the ECOSIM biogeochemical model using:
- YAML configuration specifying site name and output file
- Data from the ameriflux_site_info skill for site metadata
- Data from the ameriflux_atmchem_info skill for atmospheric chemistry
- The Blodget.clim.2012-2022.nc.template as the NetCDF file structure
python generate_ecosim_netcdf.py config.yamlThe YAML configuration file should contain:
site_name: AmeriFlux site identifier (e.g., "US-Ha1")output_file: Path where the NetCDF file will be savedtdep_data_path: Path to tDEP data directorystart_year: Starting year for atmospheric chemistry dataend_year: Ending year for atmospheric chemistry data
site_name: "US-Ha1"
output_file: "result/ecosim_input.nc"
tdep_data_path: "data/tDEP"
start_year: 2012
end_year: 2022- Integrates with existing AmeriFlux skills
- Uses template-based NetCDF structure
- Handles site metadata extraction
- Extracts atmospheric chemistry data for specified years
- Creates properly formatted ECOSIM input files