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

snapshot...

parent a8aa480c
No related branches found
No related tags found
No related merge requests found
from util.setup_cloud_fraction import model_path from util.setup_cloud_fraction import model_path
from aeolus.datasource import CLAVRx
import os import os
from deeplearning.cloud_fraction_fcn_abi import run_evaluate_static, run_evaluate_static_full_disk from deeplearning.cloud_fraction_fcn_abi import run_evaluate_static, run_evaluate_static_full_disk
tf_model_name = model_path+'tf_model_cld_frac_abi_v1' + os.sep tf_model_name = model_path+'tf_model_cld_frac_abi_v1' + os.sep
output_dir = '/home/rink' + os.sep
def infer_cloud_fraction(clavrx_file, model_path=model_path+tf_model_name): def infer_cloud_fraction(clvrx_dir, model_path=model_path+tf_model_name):
cld_frac = run_evaluate_static(clavrx_file, None, model_path) clvrx_ds = CLAVRx(clvrx_dir)
return cld_frac for fname in clvrx_ds:
dto = clvrx_ds.get_datetime(fname)
clvrx_str_time = dto.strftime('%Y-%m-%d_%H:%M')
out_file = output_dir + 'cloud_fraction_' + clvrx_str_time
run_evaluate_static(fname, out_file, model_path)
def infer_cloud_fraction_full_disk(clavrx_file, model_path=model_path+tf_model_name): def infer_cloud_fraction_full_disk(clavrx_file, model_path=model_path+tf_model_name):
......
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