Skip to content
Snippets Groups Projects
Commit 90117f5b authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 45c4eddc
No related merge requests found
......@@ -1478,7 +1478,7 @@ def write_icing_file_nc4_viirs(clvrx_str_time, output_dir, preds_dct, probs_dct,
rootgrp.close()
def write_cld_frac_file_nc4(clvrx_str_time, outfile_name, cloud_fraction,
def write_cld_prods_file_nc4(clvrx_str_time, outfile_name, cloud_fraction, cloud_frac_opd,
x, y, elems, lines, satellite='GOES16', domain='CONUS',
has_time=False):
......@@ -1512,6 +1512,14 @@ def write_cld_frac_file_nc4(clvrx_str_time, outfile_name, cloud_fraction,
cloud_fraction = cloud_fraction.reshape((1, y.shape[0], x.shape[0]))
cld_frac_ds[:, ] = cloud_fraction
cld_frac_opd_ds = rootgrp.createVariable('cldy_fraciion_opd', 'f4', var_dim_list)
cld_frac_opd_ds.setncattr('coordinates', geo_coords)
cld_frac_opd_ds.setncattr('grid_mapping', 'Projection')
cld_frac_opd_ds.setncattr('missing', -1)
if has_time:
cloud_frac_opd = cloud_frac_opd.reshape((1, y.shape[0], x.shape[0]))
cld_frac_opd_ds[:, ] = cloud_frac_opd
cf_nav_dct = get_cf_nav_parameters(satellite, domain)
if satellite == 'H08':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment