Skip to content

Commit

Permalink
[docs] minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maawoo committed Nov 29, 2023
1 parent 354a84a commit c37eefc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/content/02_Getting_Started/02_00_How_to.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href='vscode-notebook-cell://ssh-remote%2Bdraco/home/du23yow/20230905_SaldiDataCube/sdc-tools/docs/content/02_Getting_Started/02_00_How_to.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0'>1</a>\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 <a href='vscode-notebook-cell://ssh-remote%2Bdraco/home/du23yow/20230905_SaldiDataCube/sdc-tools/docs/content/02_Getting_Started/02_00_How_to.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=1'>2</a>\u001B[0m \u001B[39m'\u001B[39m\u001B[39mR\u001B[39m\u001B[39m'\u001B[39m: ds\u001B[39m.\u001B[39mB04,\n\u001B[1;32m <a href='vscode-notebook-cell://ssh-remote%2Bdraco/home/du23yow/20230905_SaldiDataCube/sdc-tools/docs/content/02_Getting_Started/02_00_How_to.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=2'>3</a>\u001B[0m \u001B[39m'\u001B[39m\u001B[39mB\u001B[39m\u001B[39m'\u001B[39m: ds\u001B[39m.\u001B[39mB02}\n\u001B[0;32m----> <a href='vscode-notebook-cell://ssh-remote%2Bdraco/home/du23yow/20230905_SaldiDataCube/sdc-tools/docs/content/02_Getting_Started/02_00_How_to.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=4'>5</a>\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 <a href='vscode-notebook-cell://ssh-remote%2Bdraco/home/du23yow/20230905_SaldiDataCube/sdc-tools/docs/content/02_Getting_Started/02_00_How_to.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=5'>6</a>\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!"
Expand Down

0 comments on commit c37eefc

Please sign in to comment.