From c37eefcb6787c5a472bd51addeb0f90618861f62 Mon Sep 17 00:00:00 2001 From: maawoo Date: Wed, 29 Nov 2023 12:37:40 +0100 Subject: [PATCH] [docs] minor fix --- docs/content/02_Getting_Started/02_00_How_to.ipynb | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/content/02_Getting_Started/02_00_How_to.ipynb b/docs/content/02_Getting_Started/02_00_How_to.ipynb index ca5b0fa..89741c8 100644 --- a/docs/content/02_Getting_Started/02_00_How_to.ipynb +++ b/docs/content/02_Getting_Started/02_00_How_to.ipynb @@ -423,8 +423,6 @@ "output_type": "error", "traceback": [ "\u001B[0;31m---------------------------------------------------------------------------\u001B[0m", - "\u001B[0;31mException\u001B[0m Traceback (most recent call last)", - "\u001B[1;32m/home/du23yow/20230905_SaldiDataCube/sdc-tools/docs/content/02_Getting_Started/02_00_How_to.ipynb Cell 26\u001B[0m line \u001B[0;36m5\n\u001B[1;32m 1\u001B[0m params \u001B[39m=\u001B[39m {\u001B[39m'\u001B[39m\u001B[39mN\u001B[39m\u001B[39m'\u001B[39m: ds\u001B[39m.\u001B[39mB08,\n\u001B[1;32m 2\u001B[0m \u001B[39m'\u001B[39m\u001B[39mR\u001B[39m\u001B[39m'\u001B[39m: ds\u001B[39m.\u001B[39mB04,\n\u001B[1;32m 3\u001B[0m \u001B[39m'\u001B[39m\u001B[39mB\u001B[39m\u001B[39m'\u001B[39m: ds\u001B[39m.\u001B[39mB02}\n\u001B[0;32m----> 5\u001B[0m ds_indices \u001B[39m=\u001B[39m spyndex\u001B[39m.\u001B[39;49mcomputeIndex(index\u001B[39m=\u001B[39;49m[\u001B[39m'\u001B[39;49m\u001B[39mNDVI\u001B[39;49m\u001B[39m'\u001B[39;49m, \u001B[39m'\u001B[39;49m\u001B[39mEVI\u001B[39;49m\u001B[39m'\u001B[39;49m], params\u001B[39m=\u001B[39;49mparams)\n\u001B[1;32m 6\u001B[0m ds_indices\n", "File \u001B[0;32m~/micromamba/envs/dev_sdc_env/lib/python3.11/site-packages/spyndex/spyndex.py:221\u001B[0m, in \u001B[0;36mcomputeIndex\u001B[0;34m(index, params, online, returnOrigin, coordinate, **kwargs)\u001B[0m\n\u001B[1;32m 219\u001B[0m \u001B[39mraise\u001B[39;00m \u001B[39mException\u001B[39;00m(\u001B[39mf\u001B[39m\u001B[39m\"\u001B[39m\u001B[39m{\u001B[39;00midx\u001B[39m}\u001B[39;00m\u001B[39m is not a valid Spectral Index!\u001B[39m\u001B[39m\"\u001B[39m)\n\u001B[1;32m 220\u001B[0m \u001B[39melse\u001B[39;00m:\n\u001B[0;32m--> 221\u001B[0m _check_params(idx, params, indices)\n\u001B[1;32m 222\u001B[0m result\u001B[39m.\u001B[39mappend(\u001B[39meval\u001B[39m(indices[idx][\u001B[39m\"\u001B[39m\u001B[39mformula\u001B[39m\u001B[39m\"\u001B[39m], {}, params))\n\u001B[1;32m 224\u001B[0m \u001B[39mif\u001B[39;00m \u001B[39mlen\u001B[39m(result) \u001B[39m==\u001B[39m \u001B[39m1\u001B[39m:\n", "File \u001B[0;32m~/micromamba/envs/dev_sdc_env/lib/python3.11/site-packages/spyndex/utils.py:74\u001B[0m, in \u001B[0;36m_check_params\u001B[0;34m(index, params, indices)\u001B[0m\n\u001B[1;32m 72\u001B[0m \u001B[39mfor\u001B[39;00m band \u001B[39min\u001B[39;00m indices[index][\u001B[39m\"\u001B[39m\u001B[39mbands\u001B[39m\u001B[39m\"\u001B[39m]:\n\u001B[1;32m 73\u001B[0m \u001B[39mif\u001B[39;00m band \u001B[39mnot\u001B[39;00m \u001B[39min\u001B[39;00m \u001B[39mlist\u001B[39m(params\u001B[39m.\u001B[39mkeys()):\n\u001B[0;32m---> 74\u001B[0m \u001B[39mraise\u001B[39;00m \u001B[39mException\u001B[39;00m(\n\u001B[1;32m 75\u001B[0m \u001B[39mf\u001B[39m\u001B[39m\"\u001B[39m\u001B[39m'\u001B[39m\u001B[39m{\u001B[39;00mband\u001B[39m}\u001B[39;00m\u001B[39m'\u001B[39m\u001B[39m is missing in the parameters for \u001B[39m\u001B[39m{\u001B[39;00mindex\u001B[39m}\u001B[39;00m\u001B[39m computation!\u001B[39m\u001B[39m\"\u001B[39m\n\u001B[1;32m 76\u001B[0m )\n", "\u001B[0;31mException\u001B[0m: 'g' is missing in the parameters for EVI computation!"