Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions luts.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@
"/beetles/point/",
"/elevation/point/",
"/taspr/point/",
"/indicators/base/point/",
"/ncr/permafrost/point/",
"/eds/hydrology/point/",
"/alfresco/flammability/area/",
"/alfresco/veg_type/area/",
"/beetles/area/",
"/elevation/area/",
"/taspr/area/",
"/indicators/base/area/",
]

# Used for generating output for vector_data for /places/all
Expand Down
12 changes: 3 additions & 9 deletions routes/indicators.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Endpoints for climate indicators

These endpoint(s) query a coverage containing summarized versions of the indicators dataset created from the 12km NCAR dataset.
The thresholds and eras are preconfigured in the coverage. Calling this the "base" indicators for now (i.e., url suffix: /indicators/base).
The thresholds and eras are preconfigured in the coverage.
"""

import json
Expand Down Expand Up @@ -498,12 +498,9 @@ def run_fetch_cmip6_indicators_point_data(lat, lon):
return render_template("500/server_error.html"), 500


@routes.route(
"/indicators/base/point/<lat>/<lon>"
) # original route, kept for backwards compatibility
@routes.route(
"/indicators/cmip5/point/<lat>/<lon>/"
) # new route, matches API documentation
) # route matches API documentation
def run_fetch_cmip5_indicators_point_data(lat, lon):
"""Query the NCAR 12km indicators_climatologies rasdaman coverage which contains indicators summarized over NCR time eras

Expand Down Expand Up @@ -558,12 +555,9 @@ def run_fetch_cmip5_indicators_point_data(lat, lon):
return render_template("404/no_data.html"), 404


@routes.route(
"/indicators/base/area/<var_id>"
) # original route, kept for backwards compatibility
@routes.route(
"/indicators/cmip5/area/<var_id>/"
) # new route, matches API documentation
) # route matches API documentation
def get_cmip5_indicators_area_data(var_id):
"""Area aggregation data endpoint. Fetch data within polygon area for specified variable and return JSON-like dict.

Expand Down