IDL: Wrong data type when reading ncdf file in IDL [message #70308] |
Tue, 30 March 2010 21:49 |
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 ^^
|
|
|