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

NC4 version of write_icing_file

parent 7aac9e06
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import pickle
import matplotlib.pyplot as plt
import os
from util.util import get_time_tuple_utc, GenericException, add_time_range_to_filename, is_night, is_day, \
check_oblique, get_timestamp, homedir, write_icing_file, make_for_full_domain_predict, \
check_oblique, get_timestamp, homedir, write_icing_file, write_icing_file_nc4, make_for_full_domain_predict, \
make_for_full_domain_predict2, get_indexes_within_threshold
from util.plot import make_icing_image
from util.geos_nav import get_navigation, get_lon_lat_2d_mesh
......@@ -2224,7 +2224,8 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
np.where(keep, preds, -1)
np.where(keep, probs, -1.0)
write_icing_file(clvrx_str_time, output_dir, preds_2d_dct, probs_2d_dct, x_rad, y_rad, lons_2d, lats_2d, cc, ll)
# write_icing_file(clvrx_str_time, output_dir, preds_2d_dct, probs_2d_dct, x_rad, y_rad, lons_2d, lats_2d, cc, ll)
write_icing_file_nc4(clvrx_str_time, output_dir, preds_2d_dct, probs_2d_dct, x_rad, y_rad, lons_2d, lats_2d, cc, ll)
print('Done: ', clvrx_str_time)
h5f.close()
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