Skip to content

Commit

Permalink
Change zero_nonveg_pfts to zero_nonveg_landunits according to ESCOMP#935
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek authored and fritzt committed May 19, 2021
1 parent 6e12f04 commit b87ea0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/contrib/singlept
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ datm_eyr=2014
#-- Modify landunit structure
overwrite_single_pft = True
dominant_pft = 7 #BETr
zero_nonveg_pfts = True
zero_nonveg_landunits= True
uniform_snowpack = True
no_saturation_excess = True

Expand Down Expand Up @@ -204,7 +204,7 @@ if create_surfdata:
if overwrite_single_pft:
f3['PCT_NAT_PFT'][:,:,:] = 0
f3['PCT_NAT_PFT'][:,:,dominant_pft] = 100
if zero_nonveg_pfts:
if zero_nonveg_landunits:
f3['PCT_NATVEG'][:,:] = 100
f3['PCT_CROP'][:,:] = 0
f3['PCT_LAKE'][:,:] = 0.
Expand Down Expand Up @@ -233,7 +233,7 @@ if create_surfdata:
f1.to_netcdf(path='~/junk.nc', mode='w')
#f1.to_netcdf(path=fsurf2, mode='w')
f1.close()
if zero_nonveg_pfts:
if zero_nonveg_landunits:
#f1 = xr.open_dataset(fsurf2)
f1 = xr.open_dataset('~/junk.nc')
f1['PCT_NATVEG'] = 100
Expand Down

0 comments on commit b87ea0e

Please sign in to comment.