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

Home » Public Forums » archive » Re: netCDf problem in IDl 6.0
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: netCDf problem in IDl 6.0 [message #36642 is a reply to message #36641] Thu, 09 October 2003 18:04 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Bruce A. Toth wrote:

> The following netcdf call worked fine inder IDL 5.6, but I get an error
> under IDL 6.0.
>
> ncdf_attput,id,'BAT file: ',/GLOBAL,file
>
> The error produced:
> % NCDF_ATTPUT: Attribute write failed. (NC_ERROR=-59)
>
> After this error, the rest of the file gets written just fine.
>
> Any ideas?

Well, netCDF error -59 is defined in ndetcdf.h thus:

#define NC_EBADNAME (-59) /* Attribute or variable name
contains illegal characters */

The string 'BAT file: ' is an illegal netCDF attribute name for two
reasons: 1) it includes spaces; 2) it uncludes a colon. (Not that I have
bothered to look up the netCDF reference.)

The puzzle is why it worked in IDL 5.6.



--
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
Previous Topic: Re: MPFIT2DPEAK with constraints
Next Topic: Re: Object graphics line thickness

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

Current Time: Sat Oct 11 21:26:44 PDT 2025

Total time taken to generate the page: 0.63977 seconds