Given a reference to a file, this procedure is used to define a list of dimension names, dimension sizes, and a logical array indicating whether the dimensions are unlimited.
procedure filedimdef ( thefile[1] : file, dimnames : string, dimsizes : integer, is_unlimited : logical )
Using this procedure is much more efficient than writing a variable's dimensions one at a time.
This procedure is part of a set of procedures called fileattdef, filevarattdef, and filevardef.
ncf = addfile("myfile.nc","c") ; ; Define dimensions. ; dimNames = (/ "lon", "lat", "lev", "time" /) dimSizes = (/ nlon, nlat, nlev, -1 /) dimUnlim = (/ False, False, False, True /) filedimdef( ncf, dimNames, dimSizes, dimUnlim )
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?