Skip to content

Commit

Permalink
more undefined terms #77. [trigger test]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticSnow committed May 11, 2023
1 parent 312e085 commit 2d023e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions TopoPyScale/topo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def FsmMetParser(file, freq="1h", resample=False):
df.columns = ['ISWR', 'ILWR', 'Sf', 'Rf', 'TA', 'RH', 'VW', 'P']

if resample == "TRUE":
df = df.resample(freq).apply(resample_func)
#df = df.resample(freq).apply(resample_func)

return (df)

Expand All @@ -36,7 +36,8 @@ def FsmSnowParser(file, freq="1H", resample=False):
df.columns = ['albedo', 'Rof', 'HS', 'SWE', 'TS10', 'TS50']

if resample == "TRUE":
df = df.resample(freq).apply(resample_func)
print('ERROR: line 39 to be fixed!')
#df = df.resample(freq).apply(resample_func)

return (df)

Expand Down Expand Up @@ -215,11 +216,11 @@ def plot_xyline(ax):

myfile = "/home/joel/sim/topoPyscale_davos/outputs/FSM_pt_00.txt"
df = FsmMetParser(myfile)
FsmPlot(df)
#FsmPlot(df)

myfile = "/home/joel/sim/topoPyscale_davos/fsm_sims/sim_ENS1_FSM_pt_00.txt"
df = FsmSnowParser(myfile)
FsmPlot(df)
#FsmPlot(df)



Expand Down

0 comments on commit 2d023e6

Please sign in to comment.