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

snapshot...

parent d7716324
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,11 @@ import numpy as np ...@@ -8,11 +8,11 @@ import numpy as np
def infer_cloud_fraction(clvrx_path, output_dir, full_disk=True, satellite='GOES16', domain='FD'): 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_s = os.listdir(model_path)
ckpt_dir = model_path + ckpt_dir_s[0] ckpt_dir = model_path + ckpt_dir_s[0]
# Navigation parameters # -- Navigation parameters
geos, xlen, xmin, xmax, ylen, ymin, ymax = get_cartopy_crs(satellite, domain) geos, xlen, xmin, xmax, ylen, ymin, ymax = get_cartopy_crs(satellite, domain)
nav = get_navigation(satellite, domain) nav = get_navigation(satellite, domain)
cc = np.arange(xlen) cc = np.arange(xlen)
...@@ -20,7 +20,7 @@ def infer_cloud_fraction(clvrx_path, output_dir, full_disk=True, satellite='GOES ...@@ -20,7 +20,7 @@ def infer_cloud_fraction(clvrx_path, output_dir, full_disk=True, satellite='GOES
x_rad = cc * nav.CFAC + nav.COFF x_rad = cc * nav.CFAC + nav.COFF
y_rad = ll * nav.LFAC + nav.LOFF 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 = SRCNN()
nn.setup_inference(ckpt_dir) nn.setup_inference(ckpt_dir)
......
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