File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1- function addTime (timeVec ,units )
2- % addTime Adds timeseries information to mygrid to use when writing netCDF
3- % files
1+ function []=grid_add_time (timeVec ,timeUnits )
2+ % grid_add_time(timeVec,timeUnits) adds a time axis to mygrid for use e.g.
3+ % when writing netcdf files via prep2nctiles.m
44% Inputs:
5- % timeVec: a vector containing the timeseries. Must be same length as
6- % the number of time steps .
7- % units : units for timeseries (ex: 'days since 1992-1-1 0:0:0')
5+ % timeVec: a vector containing the times associated with model output.
6+ % Must be same length as the number of output files / records .
7+ % timeUnits : units for the time axis (ex: 'days since 1992-1-1 0:0:0')
88% Usage:
9- % addTime([14 45 74],'days since 1992-1-1 0:0:0') % 3 time steps 14,
9+ % addTime([14 45 74],'days since 1992-1-1 0:0:0') % 3 records at 14,
1010% 45 and 74 days since 01/01/1992.
1111
12- % Get Grid
12+ % Bring mygrid to function scope
1313gcmfaces_global ;
1414
15- % Add time info to grid for writing to NCtiles
15+ % Add time info to mygrid
1616mygrid.timeVec = timeVec ;
17- mygrid.timeUnits = units ;
18-
17+ mygrid.timeUnits = timeUnits ;
1918
2019end
2120
You can’t perform that action at this time.
0 commit comments