Skip to content
Snippets Groups Projects
Commit 73cdc3fc authored by tomrink's avatar tomrink
Browse files

snapshot...

parent b9cc8e5c
No related branches found
No related tags found
No related merge requests found
...@@ -29,15 +29,15 @@ def infer_cloud_fraction(clvrx_path, output_dir, full_disk=True, satellite='GOES ...@@ -29,15 +29,15 @@ def infer_cloud_fraction(clvrx_path, output_dir, full_disk=True, satellite='GOES
else: else:
clvrx_ds = CLAVRx(clvrx_path) 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') clvrx_str_time = dto.strftime('%Y-%m-%d_%H:%M')
out_file = output_dir + 'cloud_fraction_' + clvrx_str_time + '.nc' out_file = output_dir + 'cloud_fraction_' + clvrx_str_time + '.nc'
if full_disk: if full_disk:
cld_frac = nn.run_inference_full_disk(fname, None) cld_frac = nn.run_inference_full_disk(pname, None)
else: 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, write_cld_frac_file_nc4(clvrx_str_time, out_file, cld_frac, x_rad, y_rad, None, None,
domain=domain, has_time=True) satellite=satellite, domain=domain, has_time=True)
print('Done: ', clvrx_path + fname) print('Done: ', pname)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment