Given a reference to a file, this procedure is used to define list of variable names, variable types, and variable dimension names.
procedure filevardef ( thefile[1] : file, varnames : string, types : string, dimnames : string )
This procedure is part of a set of procedures called fileattdef, filedimdef, and filevarattdef.
ncf = addfile("myfile.nc","c") filedimdef(ncf,(/"lat","lon"/),(/73,144/),(/False,False/) varNames2D = (/ "PS" /) varTypes2D = (/ "float" /) varNames3D = (/ "T", "Q" /) varTypes3D = (/ "float", "float" /) filevardef( ncf, varNames2D, varTypes2D, (/ "lat", "lon" /) ) filevardef( ncf, varNames3D, varTypes3D, (/ "lev", "lat", "lon" /) )
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?