Skip to content

Commit 506b9c4

Browse files
committed
minor bug fix
1 parent ee529ab commit 506b9c4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/topoanalysis.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def topo_dura_plot(basin):
5858
ax.annotate(i, xy=(0.7, 0.1), xycoords='axes fraction')
5959
ax.axhline(0.45, ls='--', linewidth=3)
6060
plt.xlim(0, 100)
61-
plt.ylim(0, 0.55)
61+
plt.ylim(0, 0.65)
6262
plt.yticks([0.0, 0.2, 0.4], ['0.0', '0.2', '0.4']); # Set text labels.
6363
topo_dist_plot(i)
6464
fig.savefig("print/basin/" + i + "_dist.png", dpi=300, bbox_inches="tight")
@@ -68,7 +68,7 @@ def topo_dura_plot(basin):
6868
ax.annotate(i, xy=(0.7, 0.1), xycoords='axes fraction')
6969
ax.axhline(0.45, ls='--', linewidth=3)
7070
plt.xlim(0, 2000)
71-
plt.ylim(0, 0.55)
71+
plt.ylim(0, 0.65)
7272
plt.yticks([0.0, 0.2, 0.4], ['0.0', '0.2', '0.4']); # Set text labels.
7373
topo_elev_plot(i)
7474
fig.savefig("print/basin/" + i + "_elev.png", dpi=300, bbox_inches="tight")
@@ -78,7 +78,7 @@ def topo_dura_plot(basin):
7878
ax.annotate(i, xy=(0.7, 0.1), xycoords='axes fraction')
7979
ax.axhline(0.45, ls='--', linewidth=3)
8080
plt.xlim(0, 50)
81-
plt.ylim(0, 0.55)
81+
plt.ylim(0, 0.65)
8282
plt.yticks([0.0, 0.2, 0.4], ['0.0', '0.2', '0.4']); # Set text labels.
8383
topo_slop_plot(i)
8484
fig.savefig("print/basin/" + i + "_slop.png", dpi=300, bbox_inches="tight")
@@ -88,7 +88,7 @@ def topo_dura_plot(basin):
8888
ax.annotate(i, xy=(0.7, 0.1), xycoords='axes fraction')
8989
ax.axhline(0.45, ls='--', linewidth=3)
9090
plt.xlim(0, 360)
91-
plt.ylim(0, 0.55)
91+
plt.ylim(0, 0.65)
9292
plt.yticks([0.0, 0.2, 0.4], ['0.0', '0.2', '0.4']); # Set text labels.
9393
topo_aspe_plot(i)
9494
fig.savefig("print/basin/" + i + "_aspe.png", dpi=300, bbox_inches="tight")
@@ -98,7 +98,7 @@ def topo_dura_plot(basin):
9898
ax.annotate(i, xy=(0.7, 0.1), xycoords='axes fraction')
9999
ax.axhline(0.45, ls='--', linewidth=3)
100100
plt.xlim(0, 61)
101-
plt.ylim(0, 0.55)
101+
plt.ylim(0, 0.65)
102102
plt.yticks([0.0, 0.2, 0.4], ['0.0', '0.2', '0.4']); # Set text labels.
103103
topo_dura_plot(i)
104104
fig.savefig("print/basin/" + i + "_dura.png", dpi=300, bbox_inches="tight")
@@ -109,8 +109,8 @@ def topo_dura_plot(basin):
109109
'''
110110
df = pd.read_csv("/data/shunan/data/topography/basin/SW_annual.csv")
111111
df = pd.concat([df, pd.read_csv("/data/shunan/data/topography/basin/SE_annual.csv")])
112-
index = df.albedo <= 0.55
113-
df = df[index]
112+
# index = df.albedo <= 0.60
113+
# df = df[index]
114114
df["distance"] = df.dist/1000
115115
index = df.albedo < 0.45
116116
df["ice_class"] = "bare ice"
@@ -183,8 +183,8 @@ def topo_dura_plot(basin):
183183
'''
184184

185185
df = pd.read_csv("/data/shunan/data/topography/basin/SW_annual.csv")
186-
index = df.albedo <= 0.55
187-
df = df[index]
186+
# index = df.albedo <= 0.55
187+
# df = df[index]
188188
df["distance"] = df.dist/1000
189189
index = df.albedo < 0.45
190190
df["ice_class"] = "bare ice"

0 commit comments

Comments
 (0)