[ncl-talk] strange output from NCL
Guilherme Martins
jgmsantos at gmail.com
Fri Apr 29 06:38:41 MDT 2016
Hi,
when your data is short like that, you have to unpack, for example, unpack
short to float, use
f=addfile (your.nc,r)
x=short2flt (f->var)
guilherme
Em Sex, 29 de abr de 2016 09:14, Saurabh Singh <saurabhsingh123op at gmail.com>
escreveu:
> This solves, Its the fist time i encountered a file with encoding like
> this. Thanks a lot Casper.
>
> On Fri, Apr 29, 2016 at 7:50 PM, Caspar Ammann <ammann at ucar.edu> wrote:
>
>> Look in the attributes list of your variable dump. There are
>> “scale_factor", and "add_offset”. Once you apply those to your numbers, you
>> are fine. Some software packages apply these automatically once you open
>> the variable, and sometimes (particularly when looking into the file) you
>> still need to apply them.
>> Caspar
>>
>> Caspar Ammann
>> National Center for Atmospheric Research
>> RAL - Climate Science and Applications Program
>>
>> On Apr 29, 2016, at 4:56 AM, Saurabh Singh <saurabhsingh123op at gmail.com>
>> wrote:
>>
>> I am opening the Reanalysis-2 wind data first i tried in CDO, The data
>> has wind value so the min/max range -10 to 10. However when i tried
>> opening this data in NCL i get strange outputs i.2 in range 0f -2000. I
>> don't why this is hapening.I am pasting the output along with the data.
>>
>> CDO Output
>> cee2 at cee2:~$ cdo info SV10.nc
>> -1 : Date Time Level Gridsize Miss : Minimum
>> Mean Maximum : Parameter ID
>> 1 : 2000-01-01 00:00:00 10 304 0 : -8.2600
>> -1.6862 6.7400 : -1
>> 2 : 2000-01-02 00:00:00 10 304 0 : -8.1600
>> -1.7035 5.1700 : -1
>> 3 : 2000-01-03 00:00:00 10 304 0 : -9.7900
>> -1.7118 5.8700 : -1
>> 4 : 2000-01-04 00:00:00 10 304 0 : -10.240 0.11095
>> 8.8300 : -1
>> ......
>> ....
>>
>>
>> NCL outputs:
>>
>> Number of Dimensions: 4
>> Dimensions and sizes: [time | 2922] x [level | 1] x [lat | 16] x [lon |
>> 19]
>> Coordinates:
>> time: [1753152..1823256]
>> level: [10..10]
>> lat: [14.2855..-14.2855]
>> lon: [90..123.75]
>> Number Of Attributes: 20
>> cell_methods : time: mean (of 4 6-hourly values in one day)
>> standard_name : eastward_wind
>> parent_stat : Individual Obs
>> statistic : Mean
>> level_desc : 10 m
>> dataset : NCEP/DOE AMIP-II Reanalysis (Reanalysis-2) Daily Averages
>> var_desc : u-wind
>> GRIB_name : U GRD
>> GRIB_id : 33
>> least_significant_digit : 1
>> precision : 2
>> missing_value : 32766
>> scale_factor : 0.01
>> add_offset : 207.65
>> units : m/s
>> actual_range : ( -32.79, 37.59 )
>> unpacked_valid_range : ( -120, 120 )
>> valid_range : ( -32765, -8765 )
>> long_name : Daily Forecast of U-wind at 10 m
>> _FillValue : -32767
>> (0,0,0,0) -21257
>> (0,0,0,1) -21082
>> (0,0,0,2) -20933
>> (0,0,0,3) -20810
>> (0,0,0,4) -20792
>> (0,0,0,5) -20868
>> (0,0,0,6) -21008
>> (0,0,0,7) -21122
>> (0,0,0,8) -21094
>> ....
>> With regards
>> Saurabh Kumar singh
>>
>>
>> *P** : * *Please consider the environment before printing this e-mail*
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>>
>
>
> --
> With regards
> Saurabh Kumar singh
>
> *P** : * *Please consider the environment before printing this e-mail*
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
--
------------------------------------------------------------------------------------------
Dr. Guilherme Martins
Instituto Nacional de Pesquisas Espaciais (INPE)
Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)
Grupo de Desenvolvimento em Assimilação de Dados (GDAD)
Telefone (INPE/CP): +55 12 3186-8551 || Celular (TIM): +55 12 98152-8580
E-mail: guilherme.martins at inpe.br || jgmsantos at gmail.com
Skype: guilherme.martins.
Homepage: https://sites.google.com/site/jgmsantos
Currículo Lattes: http://lattes.cnpq.br/5997657584785803
------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160429/e2d01fa8/attachment.html
More information about the ncl-talk
mailing list