NCL Website header
NCL Home > Documentation > Functions > File I/O

filevardimsizes

Returns the dimension sizes of a variable on the given file (deprecated; use getfilevardimsizes).

Prototype

	function filevardimsizes (
		thefile [1] : file,    
		varname [1] : string   
	)

	return_val [*] :  integer or long

Arguments

thefile

A reference to a file created from a call to addfile or addfiles. The file referenced must be one in the supported file format list.

varname

The string name of the variable whose dimension sizes are desired.

Description

This function works just like dimsizes, but for file variables. In NCL V6.5.0, it has been superceded by the better-named getfilevardimsizes function. See that page for full details and examples.

It is kept under this name for historical purposes.

See Also

dimsizes, getfilevardimsizes, isfilevardim