diff --git a/modules/deeplearning/cloud_fraction_fcn_abi.py b/modules/deeplearning/cloud_fraction_fcn_abi.py index 91f49182d858d858bc2bc83349c8b09f22754829..77a6b96441792801b6eb40ba51591100a1736f98 100644 --- a/modules/deeplearning/cloud_fraction_fcn_abi.py +++ b/modules/deeplearning/cloud_fraction_fcn_abi.py @@ -792,6 +792,10 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): border = int((KERNEL_SIZE - 1)/2) cld_frac_out[border:y_len-border, border:x_len - border] = cld_frac[0, :, :] + # Use this hack for now. + off_earth = (bt <= 161.0) + cld_frac_out[off_earth] = np.nan + # --- Make a DataArray ---------------------------------------------------- # var_names = ['cloud_fraction', 'temp_11_0um', 'refl_0_65um'] # dims = ['num_params', 'y', 'x'] @@ -851,6 +855,10 @@ def run_evaluate_static_full_disk(in_file, out_file, ckpt_dir): cld_frac_out[border:h_y_len, border:x_len - border] = cld_frac_nh[0, :, :] cld_frac_out[h_y_len:y_len - border, border:x_len - border] = cld_frac_sh[0, :, :] + # Use this hack for now. + off_earth = (bt <= 161.0) + cld_frac_out[off_earth] = np.nan + # --- Make DataArray ------------------------------------------------- # var_names = ['cloud_fraction', 'temp_11_0um', 'refl_0_65um'] # dims = ['num_params', 'y', 'x']