From 6b237c2890cd571055e54a4e63772c05d7659e68 Mon Sep 17 00:00:00 2001 From: Charles Parr Date: Fri, 20 Oct 2023 08:39:30 -0800 Subject: [PATCH] set api url for requests to prod earthmaps --- content/design_discharge/design_discharge.ipynb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/content/design_discharge/design_discharge.ipynb b/content/design_discharge/design_discharge.ipynb index 53460af..9b0a71d 100644 --- a/content/design_discharge/design_discharge.ipynb +++ b/content/design_discharge/design_discharge.ipynb @@ -40,16 +40,6 @@ "2. Select \"Download\" - this will save your notebook in the native Jupyter Notebook format (**.ipynb**). and the notebook will be downloaded to your computer.\n" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "1befcdc2-6b08-4fee-b8ae-e763b7903f33", - "metadata": {}, - "outputs": [], - "source": [ - "base_url = \"http://127.0.0.1:5000/\"" - ] - }, { "cell_type": "code", "execution_count": null, @@ -88,7 +78,7 @@ "# this cell uses the SNAP Data API to fetch a precipitation frequency table\n", "# results include various return intervals and durations across different models and eras \n", "import pandas as pd\n", - "precip_df = pd.read_csv(f\"{base_url}precipitation/frequency/point/{latitude}/{longitude}?format=csv\", header=9)\n", + "precip_df = pd.read_csv(f\"https://earthmaps.io/precipitation/frequency/point/{latitude}/{longitude}?format=csv\", header=9)\n", "precip_df" ] },