Update main.py
Browse files
main.py
CHANGED
|
@@ -8,12 +8,12 @@ import io
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
@app.get("/plot_trajectory")
|
| 11 |
-
def plot_trajectory(
|
| 12 |
depth_min: float, depth_max: float,
|
| 13 |
date_start: str, date_end: str):
|
| 14 |
try:
|
| 15 |
# Create data fetcher with user inputs
|
| 16 |
-
f = DataFetcher().region([
|
| 17 |
|
| 18 |
# Plotting
|
| 19 |
plt.figure()
|
|
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
@app.get("/plot_trajectory")
|
| 11 |
+
def plot_trajectory(lon_min: float, lon_max: float, lat_min: float, lat_max: float,
|
| 12 |
depth_min: float, depth_max: float,
|
| 13 |
date_start: str, date_end: str):
|
| 14 |
try:
|
| 15 |
# Create data fetcher with user inputs
|
| 16 |
+
f = DataFetcher().region([lon_min, lon_max, lat_min, lat_max, depth_min, depth_max, date_start, date_end])
|
| 17 |
|
| 18 |
# Plotting
|
| 19 |
plt.figure()
|