Skip to content

Commit 196c345

Browse files
committed
Updated mean marsh C calculations
1 parent 6f931be commit 196c345

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

scripts/marsh_ms/Process_Batches.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
'5',
2121
'10']
2222

23-
RSLR = ['IL',
24-
'I',
23+
RSLR = [#'IL',
24+
#'I',
2525
'IH']
2626

2727
Base_Name_List = ['Geom_1',
2828
'Geom_3',
2929
'Geom_4',
3030
'Geom_5']
3131

32-
Base_Name_List = ['Geom_4']
32+
Base_Name_List = ['Geom_3']
3333

3434
for Geometries in range(len(Base_Name_List)):
3535
Base_Name = Base_Name_List[Geometries]
@@ -103,8 +103,8 @@
103103
All_C_Values.append(copy.deepcopy(Total_C_Deposited_TS))
104104
print(Save_Name+'_S'+str(S_Nums)+' loaded')
105105

106-
Mean_Shoreline_Location = np.mean(All_Runs_Shoreline_Location, axis=0)
107-
Mean_C_Values = np.mean(All_C_Values, axis=0)
106+
Mean_Shoreline_Location = np.nanmean(All_Runs_Shoreline_Location, axis=0)
107+
Mean_C_Values = np.nanmean(All_C_Values, axis=0)
108108

109109
Full_Save_Path = Base_Save_Path+Save_Name
110110
# Save each of the arrays including mean and full values

scripts/marsh_ms/Test_Marsh_Accretion_Results.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
'Geom_4',
2121
'Geom_5']
2222

23+
24+
2325
for Geometries in range(len(Base_Name_List)):
2426
Base_Name = Base_Name_List[Geometries]
2527
for RSLR_Rates in range(len(RSLR)):

0 commit comments

Comments
 (0)