UNPACK

Donata Giglio donylilium22 at YAHOO.COM
Thu Nov 8 06:19:30 EST 2007


Hi!

I'm trying to display netcdf data from an ocean model
(POM) but, when I want to display temperature, it
says:

SDF data variable has unsupported packed data type.
Data Request Error:  Error for variable 'temp'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = temp

My GRADS version is 1.9b4.

my descriptor file is:

DSET ^20071104_areg2a_simu.nc
UNDEF 1.e+20f
OPTIONS ZREV
XDEF xpos 287 LINEAR 12.2 0.03
YDEF ypos 311 LEVELS
 39.0 39.022 39.044 39.066 39.088
 39.11 39.132 39.154 39.176 39.198
 39.22 39.242 39.264 39.286 39.308
 39.33 39.352 39.374 39.396 39.418
 39.44 39.462 39.484 39.506 39.528
 39.55 39.572 39.594 39.616 39.638
 39.66 39.682 39.704 39.726 39.748
 39.77 39.792 39.814 39.836 39.858
 39.88 39.902 39.924 39.946 39.968
 39.99 40.012 40.034 40.056 40.078
 40.1 40.122 40.144 40.166 40.188
 40.21 40.232 40.254 40.276 40.298
 40.32 40.342 40.364 40.386 40.408
 40.43 40.452 40.474 40.496 40.518
 40.54 40.562 40.584 40.606 40.628
 40.65 40.672 40.694 40.716 40.738
 40.76 40.782 40.804 40.826 40.848
 40.87 40.892 40.914 40.936 40.958
 40.98 41.002 41.024 41.046 41.068
 41.09 41.112 41.134 41.156 41.178
 41.2 41.222 41.244 41.266 41.288
 41.31 41.332 41.354 41.376 41.398
 41.42 41.442 41.464 41.486 41.508
 41.53 41.552 41.574 41.596 41.618
 41.64 41.662 41.684 41.706 41.728
 41.75 41.772 41.794 41.816 41.838
 41.86 41.882 41.904 41.926 41.948
 41.97 41.992 42.014 42.036 42.058
 42.08 42.102 42.124 42.146 42.168
 42.19 42.212 42.234 42.256 42.278
 42.3 42.322 42.344 42.366 42.388
 42.41 42.432 42.454 42.476 42.498
 42.52 42.542 42.564 42.586 42.608
 42.63 42.652 42.674 42.696 42.718
 42.74 42.762 42.784 42.806 42.828
 42.85 42.872 42.894 42.916 42.938
 42.96 42.982 43.004 43.026 43.048
 43.07 43.092 43.114 43.136 43.158
 43.18 43.202 43.224 43.246 43.268
 43.29 43.312 43.334 43.356 43.378
 43.4 43.422 43.444 43.466 43.488
 43.51 43.532 43.554 43.576 43.598
 43.62 43.642 43.664 43.686 43.708
 43.73 43.752 43.774 43.796 43.818
 43.84 43.862 43.884 43.906 43.928
 43.95 43.972 43.994 44.016 44.038
 44.06 44.082 44.104 44.126 44.148
 44.17 44.192 44.214 44.236 44.258
 44.28 44.302 44.324 44.346 44.368
 44.39 44.412 44.434 44.456 44.478
 44.5 44.522 44.544 44.565998 44.588
 44.61 44.632 44.654 44.676 44.698
 44.72 44.742 44.764 44.786 44.808
 44.83 44.852 44.874 44.896 44.918
 44.94 44.962 44.984 45.006 45.028
 45.05 45.072 45.094 45.116 45.138
 45.16 45.182 45.204 45.226 45.248
 45.27 45.292 45.314 45.336 45.358
 45.38 45.402 45.424 45.446 45.468
 45.49 45.512 45.534 45.556 45.578
 45.6 45.622 45.644 45.666 45.688
 45.71 45.732 45.754 45.776 45.798
 45.82
ZDEF zpos 31 LINEAR 1 1
TDEF time 1 LINEAR 0z11apr2007 24hr
VARS 7
depth=>depth 0 0 Profondita'
fsm=>fsm 0 0 Free surface mask
SSH=>ssh 0 0 Sea Surface Height
QTOT=>qtot 0 0 Net surface heat flux
QSOLAR=>qsol 0 0 Short wave flux
T=>temp 31 0 Temperature
S=>s 31 0 Salinity
ENDVARS

and temperature's matadata are:

        float T(time, zpos, ypos, xpos) ;
                T:long_name = "temperature" ;
                T:units = "K" ;
                T:unit_long = "Kelvin" ;
                T:coordinates = "lon lat zz" ;
                T:standard_name =
"sea_water_temperature" ;
                T:_FillValue = 1.e+20f ;
                T:valid_min = 3.f ;
                T:valid_max = 35.f ;
                T:add_offset = 273.15f ;

I guess I should use UNPACK but I don't have
scale_factor in matadata...

What would you suggest?

Thanks in advance!

Bye,
Donata





      ___________________________________
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html



More information about the gradsusr mailing list