You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a few different files in the coupler for AMIP and slabplanet simulations, including sea ice concentration (SIC), sea surface temperature (SST), and the land/sea mask. These files include global data at multiple different times. Currently, we read in all of the data from these NetCDF files, and remap the data at every date provided in the input file. This is inefficient because we may run our simulation for only a small fraction of the dates included in the input file data. We need to update our remapping so that we only remap data in the necessary date range for our simulation each time we run.
goal: truncate remapping, so only the necessary dates (in our time range) are remapped
Solution
Implement a function with inputs date0, time_start, time_end, datafile and output datafile_truncated, the same datafile that was input but containing only the data at our simulation dates
To do this, open the file, compare dates to simulation initial date and length, save subset of data as new netcdf, and return the new file
This function can be called on each of the datasets (sst_data, sic_data, etc) after they're downloaded in the driver
The text was updated successfully, but these errors were encountered:
We use a few different files in the coupler for AMIP and slabplanet simulations, including sea ice concentration (SIC), sea surface temperature (SST), and the land/sea mask. These files include global data at multiple different times. Currently, we read in all of the data from these NetCDF files, and remap the data at every date provided in the input file. This is inefficient because we may run our simulation for only a small fraction of the dates included in the input file data. We need to update our remapping so that we only remap data in the necessary date range for our simulation each time we run.
goal: truncate remapping, so only the necessary dates (in our time range) are remapped
Solution
date0, time_start, time_end, datafile
and outputdatafile_truncated
, the same datafile that was input but containing only the data at our simulation datessst_data
,sic_data
, etc) after they're downloaded in the driverThe text was updated successfully, but these errors were encountered: