Skip to content
Snippets Groups Projects
Commit 6e96ff5d authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 84bb59c7
Branches
No related tags found
No related merge requests found
...@@ -879,17 +879,19 @@ def analyze2(filename, filename_l1b): ...@@ -879,17 +879,19 @@ def analyze2(filename, filename_l1b):
iint = f['icing_intensity'][:] iint = f['icing_intensity'][:]
icing_alt = f['flight_altitude'][:] icing_alt = f['flight_altitude'][:]
num_obs = iint.size num_obs = iint.size
print('num obs: ', num_obs)
iint = np.broadcast_to(iint.reshape(num_obs, 1), (num_obs, 256)) iint = np.broadcast_to(iint.reshape(num_obs, 1), (num_obs, 256))
icing_alt = np.broadcast_to(icing_alt.reshape(num_obs, 1), (num_obs, 256)) icing_alt = np.broadcast_to(icing_alt.reshape(num_obs, 1), (num_obs, 256))
iint = np.where(iint == -1, 0, iint) no_ice = iint == -1
iint = np.where(iint != 0, 1, iint) ice = iint >= 1
no_ice = iint == 0 tr_ice = (iint == 1) | (iint == 2)
ice = iint == 1 tr_plus_ice = iint > 2
print('num obs: ', num_obs)
print('num no ice: ', np.sum(no_ice) // 256) print('num no ice: ', np.sum(no_ice) // 256)
print('num ice: ', np.sum(ice) // 256) print('num ice: ', np.sum(ice) // 256)
print('trace ice: ', np.sum(tr_ice) // 256)
print('trace plus ice: ', np.sum(tr_plus_ice) // 256)
keep_mask = f['FOV_mask'][:, :, :].reshape([num_obs, -1]) keep_mask = f['FOV_mask'][:, :, :].reshape([num_obs, -1])
keep_mask = keep_mask.astype(np.bool) keep_mask = keep_mask.astype(np.bool)
...@@ -903,6 +905,8 @@ def analyze2(filename, filename_l1b): ...@@ -903,6 +905,8 @@ def analyze2(filename, filename_l1b):
cld_opd = f['cld_opd_dcomp'][:, :, :].reshape([num_obs, -1]) cld_opd = f['cld_opd_dcomp'][:, :, :].reshape([num_obs, -1])
# cld_opd = f['cld_opd_acha'][:, :, :].reshape([num_obs, -1]) # cld_opd = f['cld_opd_acha'][:, :, :].reshape([num_obs, -1])
cld_reff = f['cld_reff_dcomp'][:, :, :].reshape([num_obs, -1]) cld_reff = f['cld_reff_dcomp'][:, :, :].reshape([num_obs, -1])
# cld_lwc = f['lwc_dcomp'][:, :, :].reshape([num_obs, -1])
# cld_iwc = f['iwc_dcomp'][:, :, :].reshape([num_obs, -1])
# cld_reff = f['cld_reff_acha'][:, :, :].reshape([num_obs, -1]) # cld_reff = f['cld_reff_acha'][:, :, :].reshape([num_obs, -1])
cld_emiss = f['cld_emiss_acha'][:, :, :].reshape([num_obs, -1]) cld_emiss = f['cld_emiss_acha'][:, :, :].reshape([num_obs, -1])
# cld_phase = f['cloud_phase'][:, :, :].reshape([num_obs, -1]) # cld_phase = f['cloud_phase'][:, :, :].reshape([num_obs, -1])
...@@ -913,8 +917,6 @@ def analyze2(filename, filename_l1b): ...@@ -913,8 +917,6 @@ def analyze2(filename, filename_l1b):
bt_10_4 = f_l1b['temp_10_4um_nom'][:, :, :].reshape([num_obs, -1]) bt_10_4 = f_l1b['temp_10_4um_nom'][:, :, :].reshape([num_obs, -1])
# icing_alt += np.random.normal(scale=100, size=icing_alt.size)
f.close() f.close()
f_l1b.close() f_l1b.close()
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment