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

Home » Public Forums » archive » catching netcdf error codes
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: catching netcdf error codes [message #38786 is a reply to message #38722] Mon, 29 March 2004 21:27 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Reimar Bauer wrote:
> Mark Hadfield wrote:
>
>> Reimar Bauer wrote:
>>
>>> You need only to check the first three bytes of the file. If it is 'CDF'
>>> then it is a netCDF file.
>>
>> Or possibly some other sort of file with 'CDF' in the first three bytes!
>>
>
> Yes if you have one other. Do you have an example.

No.

> It works since a while for us.

I'm just worried that it will fail to work when you least expect it.

I like the idea of trying to open the file with NCDF_OPEN and catching
any errors, because that directly answers the question: "can I open this
file as netCDF?".



--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL sort to Matlab sort
Next Topic: Averaging quaternions

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

Current Time: Wed Oct 08 18:14:48 PDT 2025

Total time taken to generate the page: 0.00387 seconds