Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ray Garcia
himawari
Commits
07ba71bc
Commit
07ba71bc
authored
Aug 07, 2017
by
R.K.Garcia
Browse files
write scaled integers for radiances
parent
a0d6d30b
Changes
1
Hide whitespace changes
Inline
Side-by-side
himawari/ahi2cmi.py
View file @
07ba71bc
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment