Skip to content

Commit

Permalink
fixed a mucked up ends variable in daily output files.
Browse files Browse the repository at this point in the history
  • Loading branch information
tammasloughran committed Jun 21, 2018
1 parent 0befffd commit 8c0d30e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,6 @@ def save_daily(exceed, event, ends, options, timedata, original_shape, mask, def
otime[:] = range(0,original_shape[0],1)
olat[:] = tempnc.variables[latvname][:]
olon[:] = tempnc.variables[lonvname][:]
event[:31,...] = missingval
ends[:31,...] = missingval
exceed[exceed.mask==True] = missingval
if options.maskfile:
dummy_array = np.ones(original_shape)*fillval
Expand Down Expand Up @@ -607,8 +605,6 @@ def save_ehi(EHIsig, EHIaccl, options, timedata, original_shape, mask):
otime[:] = range(0,original_shape[0],1)
olat[:] = tempnc.variables[latvname][:]
olon[:] = tempnc.variables[lonvname][:]
EHIsig[:31,...] = missingval
EHIaccl[:31,...] = missingval
if options.maskfile:
dummy_array = np.ones(original_shape)*fillval
dummy_array[:,mask] = EHIsig
Expand All @@ -620,4 +616,4 @@ def save_ehi(EHIsig, EHIaccl, options, timedata, original_shape, mask):
oehisig[:] = EHIsig
oehiaccl[:] = EHIaccl
tempnc.close()
dailyout.close()
dailyout.close()

0 comments on commit 8c0d30e

Please sign in to comment.