Skip to content
Snippets Groups Projects
Commit 81c464ea authored by Greg Quinn's avatar Greg Quinn
Browse files

Use -9999.0 as fill, not NaN

parent ff7ed11a
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
import sys
import h5py
import numpy as np
from scipy.io import loadmat
def main():
......@@ -18,6 +19,10 @@ def main():
mw = mat['ES_RealMW'].transpose()
sw = mat['ES_RealSW'].transpose()
lw[np.isnan(lw)] = -9999.0
mw[np.isnan(mw)] = -9999.0
sw[np.isnan(sw)] = -9999.0
output_filename = filename[:-4] + '.h5'
f = h5py.File(output_filename, 'w')
......
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