Skip to content

Commit

Permalink
Merge pull request #92 from olyson/PR1
Browse files Browse the repository at this point in the history
Updates for CLM-specific issues
  • Loading branch information
nocollier authored Jun 24, 2024
2 parents 818957f + 34301f4 commit 016257e
Show file tree
Hide file tree
Showing 8 changed files with 1,451 additions and 5 deletions.
Empty file modified bin/ilamb-fetch
100644 → 100755
Empty file.
Empty file modified bin/ilamb-mean
100644 → 100755
Empty file.
Empty file modified bin/ilamb-run
100644 → 100755
Empty file.
Empty file modified bin/ilamb-setup
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/ILAMB/ConfPermafrost.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def stageData(self, m):
dmax = float(self.keywords.get("dmax", 3.5))
Teps = float(self.keywords.get("Teps", 273.15))
tsl = m.extractTimeSeries(
"tsl", initial_time=(y0 - 1850) * 365, final_time=(yf - 1850) * 365
"tsl", alt_vars = ["TSOI"], initial_time=(y0 - 1850) * 365, final_time=(yf - 1850) * 365
)
tsl = tsl.trim(lat=[max(obs.lat.min(), tsl.lat.min()), 90])

Expand Down
8 changes: 4 additions & 4 deletions src/ILAMB/ConfSoilCarbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def confront(self, m):
mod_soilc = (
m.extractTimeSeries(
"cSoilAbove1m",
alt_vars=["soilc", "cSoil"],
alt_vars=["soilc", "cSoil", "TOTSOMC_1m"],
initial_time=t0,
final_time=tf,
)
Expand All @@ -123,18 +123,18 @@ def confront(self, m):
)
mod_npp = (
m.extractTimeSeries(
"npp", initial_time=t0, final_time=tf, expression="gpp-ra"
"npp", alt_vars=["NPP"], initial_time=t0, final_time=tf, expression="gpp-ra"
)
.integrateInTime(mean=True)
.convert("kg m-2 yr-1")
)
mod_tas = (
m.extractTimeSeries("tas", initial_time=t0, final_time=tf)
m.extractTimeSeries("tas", alt_vars=["TSA"], initial_time=t0, final_time=tf)
.integrateInTime(mean=True)
.convert("degC")
)
mod_pr = (
m.extractTimeSeries("pr", initial_time=t0, final_time=tf)
m.extractTimeSeries("pr", initial_time=t0, final_time=tf, expression = "RAIN+SNOW")
.integrateInTime(mean=True)
.convert("mm yr-1")
)
Expand Down
Loading

0 comments on commit 016257e

Please sign in to comment.