diff --git a/modules/util/infer_cloud_fraction.py b/modules/util/infer_cloud_fraction.py index 971d833a4d0f4ac7d5da1cd9ca8663d895489099..4f9bd9173b65b94bc3f37f5a8f4d45b39360c6fd 100644 --- a/modules/util/infer_cloud_fraction.py +++ b/modules/util/infer_cloud_fraction.py @@ -29,15 +29,15 @@ def infer_cloud_fraction(clvrx_path, output_dir, full_disk=True, satellite='GOES else: clvrx_ds = CLAVRx(clvrx_path) - for fname, t_start, t_stop, dto in clvrx_ds: + for pname, t_start, t_stop, dto in clvrx_ds: clvrx_str_time = dto.strftime('%Y-%m-%d_%H:%M') out_file = output_dir + 'cloud_fraction_' + clvrx_str_time + '.nc' if full_disk: - cld_frac = nn.run_inference_full_disk(fname, None) + cld_frac = nn.run_inference_full_disk(pname, None) else: - cld_frac = nn.run_inference(fname, None) + cld_frac = nn.run_inference(pname, None) - write_cld_frac_file_nc4(clvrx_str_time, out_file, cld_frac, x_rad, y_rad, None, None, satellite=satellite, - domain=domain, has_time=True) - print('Done: ', clvrx_path + fname) + write_cld_frac_file_nc4(clvrx_str_time, out_file, cld_frac, x_rad, y_rad, None, None, + satellite=satellite, domain=domain, has_time=True) + print('Done: ', pname)