nc_inquire_nvarsΒΆ

nc_inquire_nvars returns the number of variables in a nc file.

nvars = nc_inquire_nvars(ncid)

Return Value

If the function succeeds, the return value is the number of variables. If the function fails, the return value is -1.

Parameters

ncid

Identifies the nc file.

id-1157634