From ef0d0faa1110d5a04abff7aa4925b0723ce7e678 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 29 Jun 2023 11:18:17 -0500 Subject: [PATCH] snapshot... --- modules/util/infer_cloud_fraction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/util/infer_cloud_fraction.py b/modules/util/infer_cloud_fraction.py index fe40f96a..be92f61a 100644 --- a/modules/util/infer_cloud_fraction.py +++ b/modules/util/infer_cloud_fraction.py @@ -8,11 +8,11 @@ import numpy as np def infer_cloud_fraction(clvrx_path, output_dir, full_disk=True, satellite='GOES16', domain='FD'): - # location of the trained model + # -- location of the trained model ckpt_dir_s = os.listdir(model_path) ckpt_dir = model_path + ckpt_dir_s[0] - # Navigation parameters + # -- Navigation parameters geos, xlen, xmin, xmax, ylen, ymin, ymax = get_cartopy_crs(satellite, domain) nav = get_navigation(satellite, domain) cc = np.arange(xlen) @@ -20,7 +20,7 @@ def infer_cloud_fraction(clvrx_path, output_dir, full_disk=True, satellite='GOES x_rad = cc * nav.CFAC + nav.COFF y_rad = ll * nav.LFAC + nav.LOFF - # Create a model instance and initialize with trained model above + # -- Create a model instance and initialize with trained model above nn = SRCNN() nn.setup_inference(ckpt_dir) -- GitLab