Skip to content
GitLab
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
d27ee17b
Commit
d27ee17b
authored
Apr 15, 2019
by
R.K.Garcia
Browse files
More minor code cleanup
parent
5c6b891d
Changes
1
Hide whitespace changes
Inline
Side-by-side
himawari/ami2cmi.py
View file @
d27ee17b
...
...
@@ -71,7 +71,9 @@ K_BTC2 = 'c2'
def
_float_tsv
(
rowdict
):
for
k
,
v
in
rowdict
.
items
():
if
k
==
K_CHANNEL
:
if
not
k
or
not
v
:
continue
elif
k
==
K_CHANNEL
:
yield
k
,
v
elif
k
==
K_BPP
:
yield
k
,
int
(
v
)
...
...
@@ -97,10 +99,10 @@ class geolocation(ty.NamedTuple):
lon
:
np
.
ndarray
=
None
class
raw_rad_bt_alb_lut
(
ty
.
NamedTuple
):
rad
:
np
.
ndarray
=
None
bt
:
np
.
ndarray
=
None
alb
:
np
.
ndarray
=
None
#
class raw_rad_bt_alb_lut(ty.NamedTuple):
#
rad: np.ndarray = None
#
bt: np.ndarray = None
#
alb: np.ndarray = None
class
ami_coords_scale
(
ty
.
NamedTuple
):
...
...
@@ -110,10 +112,10 @@ class ami_coords_scale(ty.NamedTuple):
bx
:
float
AMI_BIT_DEPTH
=
dict
(
zip
(
range
(
1
,
17
),
[
11
,
11
,
11
,
11
,
11
,
11
,
14
,
11
,
11
,
12
,
12
,
12
,
12
,
12
,
12
,
11
]))
#
AMI_BIT_DEPTH = dict(zip(range(1, 17), [11, 11, 11, 11,
#
11, 11, 14, 11,
#
11, 12, 12, 12,
#
12, 12, 12, 11]))
# FIXME: best guess based on AHI wavelengths
AMI_CAL_KEYS
=
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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