NCDF_VARID

Syntax | Return Value | Arguments | Keywords | Examples | Version History

The NCDF_VARID function returns the ID of a netCDF variable.

Syntax

Result = NCDF_VARID(Cdfid, Name)

Return Value

This function returns the variable ID or returns -1 if the variable does not exist.

Arguments

Cdfid

The netCDF ID, returned from a previous call to NCDF_OPEN or NCDF_CREATE.

Name

A scalar string containing the variable name.

Keywords

None

Examples

See NCDF_VARDEF.

Version History

Pre 4.0

Introduced