coyote: NCDF_ISVALIDFILE

NAME
NCDF_ISVALIDFILE
PURPOSE
Utility routine to determine if a file is a valid netCDF file or not.
Returns a 1 if the file is valid and a 0 otherwise.
AUTHOR
FANNING SOFTWARE CONSULTING
David Fanning, Ph.D.
1645 Sheely Drive
Fort Collins, CO 80526 USA
Phone: 970-221-0438
E-mail: david@idlcoyote.com
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
CATEGORY
Utility.
CALLING SEQUENCE
result = NCDF_IsValidFile(filename)
INPUTS
filename:    The name of a filename to open to see if it is a valid netCDF file.
RETURN VALUE
result:  A 1 if the file can be opened as a netCDF file. A 0 otherwise.
KEYWORDS
None.
ALGORITHM
Try to open the file. If you fail, it is not an netCDF file.
MODIFICATION HISTORY
Written by: David W. Fanning, 21 February 2010.