Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Glenn Moncrieff authored and Glenn Moncrieff committed Apr 13, 2023
1 parent f434ab6 commit 00eda78
Show file tree
Hide file tree
Showing 2 changed files with 343 additions and 63 deletions.
25 changes: 25 additions & 0 deletions import geopandas as gpd.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import geopandas as gpd
from saeonobspy import SAEONObsAPI
import time
import asyncio

import os

os.environ[
"OBSDB_KEY"
] = "Dgpg1GP7lgMnO68-whKWvqoJok2XYW7GRAcjPRJPbto.DCNe6LUUjEbTXTGBLzNy--EPV_FRJzTnCH1hr7qeWl0"

# Initialize the API
saeon_api = SAEONObsAPI()

datasets_df = saeon_api.view_datasets()

filtered_datasets_df = datasets_df[datasets_df["siteName"] == "Constantiaberg"]
filtered_datasets_df = filtered_datasets_df[
filtered_datasets_df["description"]
== "Air Temperature - Daily Minimum - Degrees Celsius"
]
ob = saeon_api.get_datasets(
filtered_datasets_df, start_date="2020-12-01", end_date="2020-12-07"
)
print(ob)
Loading

0 comments on commit 00eda78

Please sign in to comment.