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

Home » Public Forums » archive » Re: reading netcdf-4 ubyte datatype
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: reading netcdf-4 ubyte datatype [message #74683 is a reply to message #74682] Fri, 28 January 2011 09:35 Go to previous messageGo to previous message
alison is currently offline  alison
Messages: 7
Registered: October 2004
Junior Member
Hi,
I am using IDL 8.0 for Linux. I also notice that if I write an IDL
"byte" variable (which is unsigned) to a netcdf file, it is written as
a netcdf "byte" type (signed), when it should be "ubyte" (unsigned).
There doesn't appear to be any way to control the datatype which IDL
is automatically choosing when reading/writing from netcdf file. Is
there a way to represent my 8-bit unsigned data so that it is handled
properly in both IDL and netcdf-4?
Thanks,
Alison

On Jan 28, 4:39 am, Fabzou <fabien.mauss...@tu-berlin.de> wrote:
> Hi,
>
> Which version of IDL are you using?
>
> IDL 7.1 does not support netCDF 4 files unless you use a patch for new
> data formats (I think it is included in IDL 7.1.1 but I am not sure)
>
> Fabz
>
> On 01/28/2011 02:33 AM, alison wrote:
>
>> Hi,
>> I'm having trouble reading a netcdf-4 file with "ubyte" type data in
>> it.  I believe that "ubyte" is a valid netcdf-4 datatype (unsigned
>> byte) and should just correspond to IDL "byte" type, but ncdf_varget
>> tells me that datatype is "unknown'.  I get this error msg:
>
>>    % NCDF_VARGET: File format error. Varid 5 has a unknown type
>
>> I don't think it is a file format problem, as I can read this file
>> just fine with Fortran, and it also passes the CF conventions checker
>> cleanly.  Does anyone know how to read the "ubyte" datatype from a
>> netcdf-4 file using IDL?
>> Thanks,
>> Alison Walker
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: automatically changing focus to x-window /command line
Next Topic: Coyote Graphics: cgPlot doesn't have /LoadCmd

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

Current Time: Sat Oct 11 00:11:17 PDT 2025

Total time taken to generate the page: 0.06230 seconds