Re: Can't exit DEFINE mode in netCDF File [message #68316 is a reply to message #68220] |
Fri, 09 October 2009 12:00   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst writes:
> All good questions. Although I find myself in the strange position of *providing*
> David-Fanning-type wisdom (to said namesake no less!) rather than being on the receiving end:
>
> It is like it is because that's the way it is.
No wonder my hate mail runs about 10:1 verses the complements.(1) :-(
> BTW, was it the fillvalue attribute in particular, or some other one?
Your example was a
> little bit different from mine in that my fillvalue was a character (where I believe yours
> was a numeric quantity).
My variable and fill value where numerical values.
What happened was that I was reading a variable and its
fill value out of a file, computing some averages (climatologies),
then writing the climatologies back into another netCDF file.
I just tried to assign the climatologies the same fill value
I had read out of the file. But, of course, the original
data were long integers, and the climatologies were floats.
I never looked at (or even knew) the fill value.
> Ultimate thanks go to Mr. Lajos (or Mr. FĂ–ldy?
> Don't know the correct order)
Yes, of course. I may have to investigate that FL language. ;-)
Cheers,
David
(1) Mostly from the Chinese though, thankfully. They are still
pissed about the Dahli Lama reference on my book page.
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|