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

snaphot...

parent 0ddb4b24
No related branches found
No related tags found
No related merge requests found
import numpy as np import numpy as np
import h5py import h5py
from util.util import get_grid_values, get_grid_values_all, is_night, is_day, compute_lwc_iwc from util.util import get_grid_values, get_grid_values_all, is_night, is_day, compute_lwc_iwc, get_fill_attrs
import glob import glob
import os import os
from aeolus.datasource import CLAVRx_VIIRS from aeolus.datasource import CLAVRx_VIIRS
...@@ -177,8 +177,9 @@ def run(data_h5f, param_s, tiles, tile_width=64, kernel_size=9): ...@@ -177,8 +177,9 @@ def run(data_h5f, param_s, tiles, tile_width=64, kernel_size=9):
grd_s = [] grd_s = []
for param in param_s: for param in param_s:
fill_value, fill_value_name = get_fill_attrs(param)
try: try:
grd = get_grid_values(data_h5f, param, 0, 0, None, num_lines, num_pixels, fill_value_name=None, fill_value=ds_fill[param]) grd = get_grid_values(data_h5f, param, 0, 0, None, num_lines, num_pixels, fill_value_name=fill_value_name, fill_value=fill_value)
grd_s.append(grd) grd_s.append(grd)
except Exception as e: except Exception as e:
print(e) print(e)
......
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