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

Home » Public Forums » archive » IDL: Wrong data type when reading ncdf file in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL: Wrong data type when reading ncdf file in IDL [message #70308] Tue, 30 March 2010 21:49
Kwang. Jae LEE is currently offline  Kwang. Jae LEE
Messages: 6
Registered: April 2010
Junior Member
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 ^^
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: "Help file not found: idl"
Next Topic: linear trend

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

Current Time: Wed Oct 08 17:48:11 PDT 2025

Total time taken to generate the page: 0.00489 seconds