diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index df5d105e85847b931f2c11fdcb12bf278853ce2b..a64af65c20c48664f2398b98fff6325d7bdaad8c 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -109,10 +109,17 @@ def run(): else: h5f = last_h5f + cc, ll = nav.earth_to_lc_s(lon_s, lat_s) + + gvals_a = get_grid_values(h5f, 'temp_10_4um_nom', ll[0], cc[0], 20) + if gvals_a is None: + continue + gvals_b = get_grid_values(h5f, 'cld_height_acha', ll[0], cc[0], 20) + if gvals_b is None: + continue + obs_times.append(time) obs_lons.append(lon) obs_lats.append(lat) - - cc, ll = nav.earth_to_lc_s(lon_s, lat_s) - gvals = get_grid_values(h5f, 'temp_10_4um_nom', ll[0], cc[0], 20) - gvals = get_grid_values(h5f, 'cld_height_acha', ll[0], cc[0], 20) \ No newline at end of file + temp_10_4um_nom.append(gvals_a) + cld_height_acha.append(gvals_b) \ No newline at end of file