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
2fea1d6d
Commit
2fea1d6d
authored
Sep 03, 2017
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
himawari/ahi2cmi.py
View file @
2fea1d6d
...
...
@@ -38,7 +38,7 @@ AHI_BIT_DEPTH = dict(zip(range(1,17), [11, 11, 11, 11,
12
,
12
,
12
,
11
]))
SCENE_ID_CONVERSION
=
{
"FLD
K
"
:
"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
):
...
...
Write
Preview
Supports
Markdown
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