Reference Guide > G Routines > GETNCOPTS Function
  

GETNCOPTS Function
Retrieves the current value of the ncopts variable as discussed in the error section of the NetCDF User’s Guide.
Usage
ncopts = GETNCOPTS( )
Input Parameters
None.
Keywords
Help—List the usage for this function.
Usage—List the usage for this function. (Same as the Help keyword.)
Return Value
ncopts—The current value of the “ncopts” variable.
Discussion
GETNCOPTS retrieves the current value of the “ncopts” variable as discussed in the Error Handling section of the NetCDF User’s Guide. This variable defines the level of error reporting by the netCDF functions.
 
note
GETNCOPTS is only valid for the NetCDF functionality included in the optional PV‑WAVE HDF interface.
Example
@hdf_startup
@hdf_common
; Set ncopts to 2 (NC_VERBOSE).
SETNCOPTS, 2
ncopts = GETNCOPTS() 
INFO, ncopts 
; PV-WAVE prints: NCOPTS LONG = 2 
ncid = NCOPEN('ofile.nc', NC_NOWRITE)
status = NCCLOSE(ncid) 
 
; Now set nvopts to 0 (no output).
SETNCOPTS, 0
PRINT, GETNCOPTS() 
ncid = NCOPEN('ofile.nc', NC_NOWRITE)
status = NCCLOSE(ncid) 
See Also
GETNCERR,   SETNCOPTS
Also refer to the NetCDF User’s Guide.
For more information on using the PV‑WAVE HDF interface and the calling sequence for the entire suite of HDF base functions, refer to
PV-WAVE HDF Interface.
For a complete list of the HDF convenience routines, refer to Functional Summary of Routines.

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.