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 #70304 is a reply to message #70301] Wed, 31 March 2010 00:18 Go to previous messageGo to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
I'm not completely familiar with ncdf_varget but short is probably
referring to a short integer not a floating point number. This just
means its a 2 byte integer (i.e. data type 2 in IDL speak). It is
common for data of this type to be stored in this way in scientific
data formats.

I'm not sure what you're issue is. It appears from above it is being
read in correctly. When you multiply data * scalef it will become a
floating point array and give you the correct result.

On Mar 31, 6:10 pm, "Kwang. Jae LEE" <iglea...@gmail.com> wrote:
> thanks for your answer
> yeah, I can get real value with 'scalef'
> before that, my problem is..
>
> when I use NCDF_VARGET commend.
> varible have to be stored in real attribute as which is written
> 'short'
> but the result I read is stored as fix type.
> fix type is integer, but short type is real as i konw..
>
> i'm just begginer. there's something wrong i konw ?
>
> plz many commnet ^^
[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: Wed Oct 08 18:48:00 PDT 2025

Total time taken to generate the page: 0.00197 seconds