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
catching netcdf error codes [message #38722] Fri, 26 March 2004 12:48 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Hi all,

I don't know how to catch a netcdf error code. I want to write a
function is_netcdf() which checks if a file is a netcdf file. For
that, I use the ncdf_open() function. If the file is not a netcdf
file, then I will get an error which I want to catch. The error sais
"%NCDF_OPEN: Unable to open the file "...". (NC_ERROR=-51)".

If I now check !error_state.code, it is -1088 and not -51. Which
variable holds the "nc_error", how can I get that?

Thanks for your help,
Benjamin
[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:45:15 PDT 2025

Total time taken to generate the page: 0.00362 seconds