Routines (alphabetical) > Routines: N > NCDF Routines > NCDF_EXISTS

# NCDF_EXISTS

The NCDF_EXISTS function returns true if the Network Common Data Format (NetCDF) scientific data format library is supported on the current IDL platform.

This routine is written in the IDL language. Its source code can be found in the file `ncdf_exists.pro` in the `lib` subdirectory of the IDL distribution.

## Examples

The following IDL command prints an error message if the NetCDF library is not available:

IF NCDF_EXISTS() EQ 0 THEN PRINT, 'NCDF not supported.'

## Syntax

Result = NCDF_EXISTS( )

## Return Value

Returns true if the library is supported.

## Arguments

None

## Keywords

None

## Version History

Pre 4.0 | Introduced