Re: Can't exit DEFINE mode in netCDF File [message #68261 is a reply to message #68119] |
Wed, 07 October 2009 08:52   |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
On Wed, 7 Oct 2009, dcleon@gmail.com wrote:
>
>> Where is it written, though, that the _FillValue attribute has
>> to be the same data type as the variable it is an attribute of?
>> And why doesn't *that* cause an error, instead of this action at
>> a distance thing?
>
> I've run into this problem several times. I think with the ncdf_
> routines that if the type on any attribute or variable fails to match
> the declared type, that you're going to get an error when you close
> the file. Seems like the ncdf routines should give you the error when
> you define the attribute/variable not down the road when you go to
> close the file. Anyway, the bottom line is check types very carefully
> when writing NetCDF files.
>
> Cheers,
> dave
>
Some ncdf_ routines silently return -1 on error. Users have to check these
return values manually. But I am sure there is some logic behind it, it's
IDL ;-)
regards,
lajos
|
|
|