Skip to content

Commit

Permalink
Update lt_calib_runs_md.py to specify lc_lookup_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlew committed Aug 25, 2020
1 parent c92c1aa commit 04f8c3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion wepppy/_scripts/lt_calib_runs_md.py
Expand Up @@ -331,7 +331,8 @@ def log_print(msg):
cfg='lt-fire-future',
climate='future'),
dict(wd='CurCond.202007.cl532.ki5krcs.chn_cs{cs}',
landuse=None),
landuse=None,
lc_lookup_fn='ki5krcs.csv'),
dict(wd='PrescFireS.202007.kikrcs.chn_cs{cs}',
landuse=[(not_shrub_selector, 110), (shrub_selector, 122)]),
dict(wd='LowSevS.202007.kikrcs.chn_cs{cs}',
Expand Down Expand Up @@ -359,6 +360,7 @@ def log_print(msg):
projects.append(deepcopy(watershed))
projects[-1]['cfg'] = scenario.get('cfg', 'lt')
projects[-1]['landuse'] = scenario['landuse']
projects[-1]['lc_lookup_fn'] = scenario.get('lc_lookup_fn', 'landSoilLookup.csv')
projects[-1]['climate'] = scenario.get('climate', 'observed')
projects[-1]['wd'] = ('lt_%s_%s' % (watershed['wd'], scenario['wd'])).format(cs=watershed['cs'])

Expand Down Expand Up @@ -457,6 +459,11 @@ def log_print(msg):
soils = Soils.getInstance(wd)
soils.mode = SoilsMode.Gridded
soils.build()

if _exists(_join(wd, 'lt.nodb')):
lt = LakeTahoe.getInstance(wd)
lt.modify_soils(default_wepp_type='Granitic', lc_lookup_fn=lc_lookup_fn)


log_print('building climate')

Expand Down

0 comments on commit 04f8c3a

Please sign in to comment.