<div dir="ltr">Hi everyone!<br><br>I'm trying to use "UNPACK scale_factor add_offset" to display properly the net solar radiation at the surface in this case (ERA-40). The error message I'm getting is "Warning: Could not retrieve add offset -- setting to 0.0". My ctl file, an output of 'ncdump -h', the error message itself and also the GrADS 'q config' output are below in this message.<br>
<br>Would anybody have a suggestion or hint on how to go through it..?<br><br>Thanks in advance! :-)<br><br>Regards,<br><br>Helio<br><br><br>### ctl file ###<br>DSET <a href="http://test.nc">test.nc</a><br>DTYPE netcdf<br>
UNDEF -32767s _FillValue<br>UNPACK scale_factor add_offset<br>XDEF 145 LINEAR -27 0.5<br>YDEF 82 LINEAR -33 0.5<br>ZDEF 1 LINEAR 1 1<br>TDEF 1 LINEAR 05jul2000 1dy<br>VARS 1<br>ssrc 0 t,y,x net solar radiation at the surface (W/m2)<br>
ENDVARS<br>######<br>--------------------------------------------------------------------------------<br>### ncdump -h ###<br>netcdf test {<br>dimensions:<br> longitude = 145 ;<br> latitude = 82 ;<br> time = 1 ;<br>
variables:<br> float longitude(longitude) ;<br> longitude:units = "degrees_east" ;<br> longitude:long_name = "longitude" ;<br> float latitude(latitude) ;<br>
latitude:units = "degrees_north" ;<br> latitude:long_name = "latitude" ;<br> int time(time) ;<br> time:units = "hours" ;<br> time:long_name = "time" ;<br>
short ssrc(time, latitude, longitude) ;<br> ssrc:scale_factor = 226.931819569065 ;<br> ssrc:add_offset = 9379013.06818043 ;<br> ssrc:_FillValue = -32767s ;<br> ssrc:missing_value = -32767s ;<br>
ssrc:units = "W m**-2 s" ;<br> ssrc:long_name = "Surface net solar radiation, clear sky" ;<br><br>// global attributes:<br> :Conventions = "CF-1.0" ;<br>
:history = "2008-08-08 20:15:28 GMT by mars2netcdf-0.92" ;<br>}<br>######<br>--------------------------------------------------------------------------------<br>###grads error message and q config output###<br>
Grid Analysis and Display System (GrADS) Version 2.0.a2<br>Copyright (c) 1988-2008 by Brian Doty and the<br>Institute for Global Environment and Society (IGES)<br>GrADS comes with ABSOLUTELY NO WARRANTY<br>See file COPYRIGHT for more information<br>
<br>Config: v2.0.a2 little-endian readline printim grib2 netcdf hdf4-sds<br>Issue 'q config' command for more information.<br>GX Package Initialization: Size = 11 8.5<br>Scanning description file: test.ctl<br>Data file <a href="http://test.nc">test.nc</a> is open as file 1<br>
LON set to -27 45<br>LAT set to -33 7.5<br>LEV set to 1 1<br>Time values set: 2000:7:5:0 2000:7:5:0<br>E set to 1 1<br><b>ga-> q file<br>File 1 :<br> Descriptor: test.ctl<br> Binary: <a href="http://test.nc">test.nc</a><br>
Type = Gridded<br> Xsize = 145 Ysize = 82 Zsize = 1 Tsize = 1 Esize = 1<br> Number of Variables = 1<br> ssrc 0 -103 net solar radiation at the surface (W/m2)<br>ga-> d ssrc<br>" -- using -32767 insteadve "_FillValue<br>
Warning: Could not retrieve add offset -- setting to 0.0<br>Contouring: -7e+06 to 7e+06 interval 1e+06</b><br><br>ga-> q config<br>Config: v2.0.a2 little-endian readline printim grib2 netcdf hdf4-sds<br>Grid Analysis and Display System (GrADS) Version 2.0.a2<br>
Copyright (c) 1988-2008 by Brian Doty and the<br>Institute for Global Environment and Society (IGES)<br>This program is distributed WITHOUT ANY WARRANTY<br>See file COPYRIGHT for more information.<br><br>Built Wed May 21 16:34:42 MDT 2008 for i686-pc-linux-gnu<br>
<br>This version of GrADS has been configured with the following options:<br> o Built on a LITTLE ENDIAN machine<br> o Command line editing ENABLED<br> o printim command for image output ENABLED<br> o GRIB2 interface ENABLED<br>
o NetCDF interface ENABLED<br> o HDF4 SDS interface ENABLED<br> o Athena Widget GUI DISABLED<br> o OPeNDAP gridded data interface DISABLED<br> o OPeNDAP station data interface DISABLED<br><br>For additional information please consult <a href="http://iges.org/grads">http://iges.org/grads</a><br>
######<br><br><br></div>