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

snapshot...

parent a5f7d3d6
No related branches found
No related tags found
No related merge requests found
......@@ -519,6 +519,24 @@ def scale(data, param, mean_std_dict, copy=True):
return data
def scale2(data, lo, hi, copy=True):
if copy:
data = data.copy()
shape = data.shape
data = data.flatten()
data -= lo
data /= (hi - lo)
not_valid = np.isnan(data)
data[not_valid] = 0
data = np.reshape(data, shape)
return data
f = open(ancillary_path+'geos_crs_goes16_FD.pkl', 'rb')
geos_goes16_fd = pickle.load(f)
f.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