NCAR / lrose-core

Core C/C++ code for LROSE.
https://www.eol.ucar.edu/content/lidar-radar-open-software-environment
Other
92 stars 51 forks source link

Radx2Grid writing scaled data fields... option to unscale? #103

Closed CASAelyons closed 3 years ago

CASAelyons commented 3 years ago

Hello. My sincere apologies if I missed this in the parameter documentation. I run RadxConvert on Nexrad data and end up with a field like so:

byte REF(n_points) ; REF:long_name = "reflectivity" ; REF:standard_name = "equivalent_reflectivity_factor" ; REF:units = "dBZ" ; REF:sampling_ratio = 1.f ; REF:_FillValue = -128b ; REF:scale_factor = 0.5f ; REF:add_offset = 31.f ; REF:grid_mapping = "grid_mapping" ; REF:coordinates = "time range" ;

On this output have a previous version of Radx2Grid that converts this to float: float REF(time, z0, y0, x0) ; REF:valid_min = -23.71136f ; REF:valid_max = 18.70769f ; REF:_FillValue = -9999.f ; REF:standard_name = "REF" ; REF:long_name = "reflectivity" ; REF:units = "dBZ" ;

But the latest version of Radx2Grid, with the exact same call and same parameter file converts this to a scaled short: short REF(time, z0, y0, x0) ; REF:scale_factor = 0.0006512001f ; REF:add_offset = -2.300217f ; REF:valid_min = -32767s ; REF:valid_max = 32767s ; REF:_FillValue = -32768s ; REF:min_value = -23.62507f ; REF:max_value = 19.02854f ; REF:standard_name = "REF" ; REF:long_name = "reflectivity" ; REF:units = "dBZ" ;

Is there an option in the latest version of Radx2Grid to produce the unscaled output?

Thanks very much in advance.