Project

General

Profile

Unlimited Time Dimension to Fixed Time Dimension

Added by Kevin Havener about 7 years ago

When I use ensmean or enssum say to act along the time axis, it of course calculates the sum or mean, collapsing the time dimension to one time step. When I output the resulting sum or mean as a netcdf, it creates a netcdf-classic (netcdf3) with one unlimited dimension. Is there a flag or something to make the netcdf output the single time step as a fixed dimension instead of unlimited?


Replies (1)

RE: Unlimited Time Dimension to Fixed Time Dimension - Added by Ralf Mueller about 7 years ago

You can use the NCO named ncks for this like

ncks --fix_rec_dmn <dimname> <ifile> <ofile>

See here for some examples.

    (1-1/1)