wwieder / biogeochem_testbed

Soil biogeochemical testbed
7 stars 7 forks source link

Size allocated to CORPSE output structure depends on size of met.nc file. #13

Open melanniehartman opened 6 years ago

melanniehartman commented 6 years ago

Read the number of years in the met.nc file to determine the number of timesteps needed in the CORPSE output file data structures. Previously the allocation to these output data structures assumed a max number of 7 years. This was an OK assumption when running a 2-degree grid because the size of met.nc files could not exceed 2GB, which was 5-7 years, depending on the number of variables strored in the met.nc files. Seven is not a sufficient number of years for the point weather input files that may contain many more than 7 years wihout exceeding the maximum netcdf file size.