Skip to content

Commit 82cc635

Browse files
authored
Merge pull request #197 from deitrr/main
Fix of unit issue in EarthClimate example plot
2 parents 69617a8 + 7e1276c commit 82cc635

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/EarthClimate/earth.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ dMixingDepth 70
4848
dNuLandWater 0.8
4949
bElevFB 0
5050
dRefHeight 400
51+
dSeasOutputTime 0

examples/EarthClimate/makeplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def comp2huybers(plname, xrange=False, show=True):
8989
pco2 = np.float(lines[i].split()[1])
9090

9191
try:
92-
longp = (body.ArgP + body.LongA + body.PrecA + 180) * np.pi / 180.0
92+
longp = (body.ArgP + body.LongA + body.PrecA + 180)
9393
except:
94-
longp = body.PrecA * np.pi / 180.0
94+
longp = body.PrecA
9595

9696
esinv = ecc * np.sin(longp)
9797

0 commit comments

Comments
 (0)