Commit 2fea1d6d authored by R.K.Garcia's avatar R.K.Garcia
Browse files

scene_id lookup table fix and warning on unknown

basically this will warn for anything but HSD FLDK scenes currently
parent d0e44aa0
......@@ -38,7 +38,7 @@ AHI_BIT_DEPTH = dict(zip(range(1,17), [11, 11, 11, 11,
12, 12, 12, 11]))
SCENE_ID_CONVERSION = {
"FLDK": "Full Disk",
"FLD": "Full Disk",
}
class HimawariAHIasCMIP(object):
......@@ -304,9 +304,12 @@ class HimawariAHIasCMIP(object):
@property
def scene_id(self):
LOG.warning("FIXME scene_id is hard coded")
return "Full Disk"
# return SCENE_ID_CONVERSION.get(self._hs.observation_area, self._hs.observation_area)
oa = self._hs.observation_area
sid = SCENE_ID_CONVERSION.get(oa, None)
if sid is None:
LOG.warning("unable to find GOES-R scene id for observation area {}".format(repr(oa)))
return oa
return sid
@property
def central_wavelength(self):
......
Supports Markdown
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