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

More minor code cleanup

parent 5c6b891d
......@@ -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 = {
......
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