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
206 changes: 130 additions & 76 deletions docs/source/science/ESA_CCI/ESA_CCI_V5_Token_Access.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@
"1. Navigate to the URL above. \n",
"2. Choose **NASA Earthdata Login (EDL)** when prompted and authorize access. \n",
"3. After successful authorization you will see a **token page** showing your long‑lived access token string. Copy this token.\n",
"4. Create a `credentials.txt` file in the same location as this notebook.\n",
"4. Create a `credentials.txt` file in the home directory of the user.\n",
"5. Edit and copy the following snippet to the `credentials.txt` file.\n",
"\n",
"```\n",
Expand All @@ -496,7 +496,7 @@
"outputs": [],
"source": [
"# --- Path to credentials.txt --- \n",
"CREDENTIALS_FILE = Path('./credentials.txt').resolve().parent / \"credentials.txt\" # Insert the .txt path\n",
"CREDENTIALS_FILE = (Path.home() / \"credentials.txt\").resolve() # Insert the .txt path\n",
"\n",
"def load_credentials(file_path=CREDENTIALS_FILE):\n",
" \"\"\"Read key-value pairs from a credentials file into a dictionary.\"\"\"\n",
Expand Down