Skip to content
Snippets Groups Projects
Commit 0993dd65 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 95040c52
Branches
No related tags found
No related merge requests found
...@@ -748,6 +748,8 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, ...@@ -748,6 +748,8 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y,
outfile_name = output_dir + 'icing_prediction_'+clvrx_str_time+'.nc' outfile_name = output_dir + 'icing_prediction_'+clvrx_str_time+'.nc'
rootgrp = Dataset(outfile_name, 'w', format='NETCDF4') rootgrp = Dataset(outfile_name, 'w', format='NETCDF4')
rootgrp.setncattr('Conventions', 'CF-1.7')
dim_0_name = 'x' dim_0_name = 'x'
dim_1_name = 'y' dim_1_name = 'y'
geo_coords = 'y x' geo_coords = 'y x'
...@@ -823,7 +825,7 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y, ...@@ -823,7 +825,7 @@ def write_icing_file_nc4(clvrx_str_time, output_dir, preds_dct, probs_dct, x, y,
# proj_ds.attrs.create('LOFF', data=2750.5) # proj_ds.attrs.create('LOFF', data=2750.5)
proj_ds = rootgrp.createVariable('Projection', 'b') proj_ds = rootgrp.createVariable('Projection', 'b')
proj_ds.setncattr('long_name', 'Himawari Imagery Projection') proj_ds.setncattr('long_name', 'icing_prediction_2021-10-07_18:01.nc')
proj_ds.setncattr('grid_mapping_name', 'geostationary') proj_ds.setncattr('grid_mapping_name', 'geostationary')
proj_ds.setncattr('sweep_angle_axis', 'x') proj_ds.setncattr('sweep_angle_axis', 'x')
proj_ds.setncattr('semi_major_axis', 6378137.0) proj_ds.setncattr('semi_major_axis', 6378137.0)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment