addtimedim¶
- mipylib.dataset.midata.addtimedim(infn, outfn, t, tunit='hours')¶
Add a time dimension to a netCDF data file.
- Parameters:
infn – (string) Input netCDF file name.
outfn – (string) Output netCDF file name.
t – (datetime) A time value.
tunit – (string) Time unite, Default is
hours
.
- Returns:
The new netCDF with time dimension.