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

Home » Public Forums » archive » Re: netCDF _FillValue attributes
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 _FillValue attributes [message #43024] Fri, 11 March 2005 04:08
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
sdj@tiscali.it wrote:
> Dear All,
>
> I am using IDL to produce some netCDF files.
>
> In order to adhere to the COARDS convention I need to supply the
> _FillValue attribute.
>
> My data variable is in form of a byte array, with values ranging from
0
> to 255.
> My valid values go from 0 to 254, and subsequently I want to have
both
> the _FillValue and the missing_value attributes set to 255.
>
> The problem I am having is that I cannot set the _FillValue to 255.
> By running the code attached below (with the different options ->),
and
> ncdumping -h the resulting netCDF file I always get the _FillValue =
> '\377'

ncdump treats BYTE data as a character type. If the number stored
represents a printable character, it prints it as that character (for
instance, 'C'). Otherwise, it uses C-style escape sequences such as
'\t' for the tab character. If there's no special escape sequence for a
given value, it just prints it as an octal escape sequence like the one
you see. '\377' represents 3*8^2+7*8+7 = 255. No problem.
[Message index]
 
Read Message
Previous Topic: netCDF _FillValue attributes
Next Topic: Re: least square matrix

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

Current Time: Sat Oct 11 14:13:14 PDT 2025

Total time taken to generate the page: 1.52040 seconds