NCDF_ISVALIDFILE
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.
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/
Utility.
result = NCDF_IsValidFile(filename)
filename: The name of a filename to open to see if it is a valid netCDF file.
result: A 1 if the file can be opened as a netCDF file. A 0 otherwise.
None.
Try to open the file. If you fail, it is not an netCDF file.
Written by: David W. Fanning, 21 February 2010.