summaryrefslogtreecommitdiff
path: root/szilagyi/plots.py
diff options
context:
space:
mode:
Diffstat (limited to 'szilagyi/plots.py')
-rw-r--r--szilagyi/plots.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/szilagyi/plots.py b/szilagyi/plots.py
index 072a32d..b38b99e 100644
--- a/szilagyi/plots.py
+++ b/szilagyi/plots.py
@@ -15,12 +15,6 @@ def grid(start, end, steps):
if __name__ == "__main__":
- swis = _dataset.INDICES
-
- def _swi(x, y): # dt, depth
- segments = find_boundary_curves(swis, x, y)
- return calculate_swi(segments, x, y)
-
C = []
X = list(grid(0, 40, 1000))
Y = list(grid(0, 50000, 1000))
@@ -30,12 +24,12 @@ if __name__ == "__main__":
for x_scaled in range(0, 1000):
x = x_scaled / 25
try:
- swi = _swi(x, y)
+ swi = calculate_swi(x, y)
except (IndexError, RuntimeError):
swi = -10
row.append(swi)
C.append(row)
plot.pcolormesh(X, Y, C, cmap='viridis', vmin=-10, vmax=10, rasterized=True)
- for _, data in swis:
+ for _, data in _dataset.INDICES:
plot.plot([x[0] for x in data], [x[1] for x in data])
plot.show()