From ba88b6552cfdd8e198e6648efa516cb89c9d878a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 Aug 2025 21:52:47 +0000 Subject: [PATCH 1/2] Initial plan From 9b46b52ff6b21419a2f1becccc18a28949626c9b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 Aug 2025 21:57:43 +0000 Subject: [PATCH 2/2] Remove /indicators/base aliases from API Co-authored-by: brucecrevensten <525049+brucecrevensten@users.noreply.github.com> --- luts.py | 2 -- routes/indicators.py | 12 +++--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/luts.py b/luts.py index 47d4adbf..8f9950f6 100644 --- a/luts.py +++ b/luts.py @@ -80,7 +80,6 @@ "/beetles/point/", "/elevation/point/", "/taspr/point/", - "/indicators/base/point/", "/ncr/permafrost/point/", "/eds/hydrology/point/", "/alfresco/flammability/area/", @@ -88,7 +87,6 @@ "/beetles/area/", "/elevation/area/", "/taspr/area/", - "/indicators/base/area/", ] # Used for generating output for vector_data for /places/all diff --git a/routes/indicators.py b/routes/indicators.py index 6cf8e187..b64d334f 100644 --- a/routes/indicators.py +++ b/routes/indicators.py @@ -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 @@ -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//" -) # original route, kept for backwards compatibility @routes.route( "/indicators/cmip5/point///" -) # 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 @@ -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/" -) # original route, kept for backwards compatibility @routes.route( "/indicators/cmip5/area//" -) # 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.