Skip to content

Commit

Permalink
one-character bug fix in the regridding script
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpm committed Sep 7, 2023
1 parent 9a10372 commit 66fce0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/regridding/regrid_and_vert_interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def regrid_and_vert_interp(adf):

#Finally, write re-gridded data to output file:
save_to_nc(rgdata_interp, regridded_file_loc)
rgdata_interp.close() # bpm: we are completely done with this data

#Now vertically interpolate baseline (target) climatology,
#if applicable:
Expand Down Expand Up @@ -327,7 +328,7 @@ def regrid_and_vert_interp(adf):
ofrac = xr.where(ofrac<0,0,ofrac)
# mask the land in TS for global means
tgdata_interp['OCNFRAC'] = ofrac
ts_tmp = rgdata_interp[var]
ts_tmp = tgdata_interp[var]
ts_tmp = pf.mask_land_or_ocean(ts_tmp,ofrac)
tgdata_interp[var] = ts_tmp
else:
Expand Down

0 comments on commit 66fce0b

Please sign in to comment.