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.