Skip to content

Commit

Permalink
Climate Engine API changes #532
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMWhitehead committed Nov 16, 2024
1 parent 847e46c commit 183ccf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/climate_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from typing import List

CLIMATE_ENGINE_API = 'https://api.climateengine.org'
CLIMATE_ENGINE_API = 'https://api.climateengine.org' # DEBUG: 'https://api-dev.climateengine.org'
CLIMATE_ENGINE_URL = 'https://www.climateengine.org/'
CLIMATE_ENGINE_MACHINE_CODE = 'Climate Engine'

Expand Down Expand Up @@ -86,7 +86,7 @@ def get_dataset_timeseries_polygon(dataset: str, variables: List[str], start_dat
'end_date': end_date,
'coordinates': f'[{coordinates}]'}

url = f'{CLIMATE_ENGINE_API}/timeseries/native/polygons'
url = f'{CLIMATE_ENGINE_API}/timeseries/native/coordinates'
headers = {'accept': 'application/json',
'Authorization': api_key}
response = requests.get(url, params=params, headers=headers)
Expand Down Expand Up @@ -122,7 +122,7 @@ def get_dataset_zonal_stats_polygon(dataset: str, variables: List[str], start_da
'end_date': end_date,
'coordinates': f'[{coordinates}]'}

url = f'{CLIMATE_ENGINE_API}/timeseries/native/polygons'
url = f'{CLIMATE_ENGINE_API}/timeseries/native/coordinates'
headers = {'accept': 'application/json',
'Authorization': api_key}
response = requests.get(url, params=params, headers=headers)
Expand Down

0 comments on commit 183ccf6

Please sign in to comment.