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

Home » Public Forums » archive » Re: IDL: Wrong data type when reading ncdf file in IDL
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: IDL: Wrong data type when reading ncdf file in IDL [message #70306 is a reply to message #70305] Tue, 30 March 2010 23:50 Go to previous messageGo to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
I'm not sure if I full understand your post but the data is probably
stored as 2 byte integers. The scale is used to obtain the actual
physical value, i.e. scalef * data. Try this on a small part of your
dataset and hopefully the output is somewhere in the range of 270-300
K

Max


On Mar 31, 3:49 pm, "Kwang. Jae LEE" <iglea...@gmail.com> wrote:
> Hi
>
> I tried to read ncdf fomatted data in IDL
>
> below is well-known data in meterology
>
> File : sst.mnmean.nc
> -----------------------------------------
> id=NCDF_OPEN(file)
> NCDF_VARGET, id,'sst', data
>   NCDF_ATTGET, id, 'sst', 'missing_value', miss
>   NCDF_ATTGET, id, 'sst', 'scale_factor', scalef
>   NCDF_ATTGET, id, 'sst', 'add_offset', offset
> NCDF_CLOSE, id
> -----------------------------------------
>
> IDL> help, data, scalef, offset
> DATA            INT       = Array[180, 89, 1874]
> SCALEF          FLOAT     =     0.0100000
> OFFSET          FLOAT     =       0.00000
>
> vaiable 'sst' is float or short data type checking from 'Grads' and
> 'ncdump -h commend'
> SST data is taken as interger form.
> but when I read another varible in IDL like above,  it has no problem
>
> anybody who has same problem or has answer from my question
> plz, help ^^
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: linear trend
Next Topic: IDL_PATH

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

Current Time: Sat Oct 11 02:47:40 PDT 2025

Total time taken to generate the page: 1.91725 seconds