Commit 07ba71bc authored by R.K.Garcia's avatar R.K.Garcia
Browse files

write scaled integers for radiances

parent a0d6d30b
......@@ -161,15 +161,26 @@ class HimawariAHIasCMIP(object):
CMI:ancillary_variables = "DQF" ;
:return: dictionary of GOES-R PUG-complaint CMIP attributes for data
"""
return {
if self._as_radiances:
cal = self._hs.calibration
sf, ao = cal.rad_m, cal.rad_b
zult = {
'scale_factor': sf, # results in netcdf layer storing scaled integers
'add_offset': ao,
'.dtype': np.int16
}
else:
zult = {}
zult.update({
'long_name': self.long_name,
'standard_name': self.standard_name,
'units': self.units,
'grid_mapping': self._projection_name,
'coordinates': 'band_id band_wavelength t y x',
'sensor_band_bit_depth': self.bit_depth
'sensor_band_bit_depth': self.bit_depth,
# 'resolution':
}
})
return zult
@property
def data_dims(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment