comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to check if a file is indeed a NetCDF file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to check if a file is indeed a NetCDF file? [message #15033 is a reply to message #15032] Mon, 19 April 1999 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Paul van Delst wrote:

> Hello,
>
> In trying to read NetCDF data files in IDL, I've discovered that the
> NCDF_OPEN crashes on me if the file I ask it to open is not a nCDF file.
> It crashes somewhat gracefully in that it tells me that NCDF_OPEN
> couldn't open the file and the error # is 19. Does anyone out there know
> how to use the IDL NCDF library to determine whether or not a file is in
> NetCDF format? The fact that the most obvious solution (i.e. NCDF_OPEN
> *returns* an error # rather than falling in a heap) doesn't work like I
> would expect doesn't make me too hopeful.
>
> Any info appreciated.
>
> paulv
>
> --
> Paul van Delst
> Space Science and Engineering Center | Ph/Fax: (608) 265-5357, 262-5974
> University of Wisconsin-Madison | Email: paul.vandelst@ssec.wisc.edu
> 1225 W. Dayton St., Madison WI 53706 | Web: http://airs2.ssec.wisc.edu/~paulv

read the first 3 Bytes
You will found 'CDF' if it's a netCDF File.

R.Bauer
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Help: Retrieve the state of radio button
Next Topic: How to check if a file is indeed a NetCDF file?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 04:27:39 PDT 2025

Total time taken to generate the page: 0.23822 seconds