Skip to content

Commit

Permalink
Merge pull request #113 from nasa/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
battistowx authored Oct 1, 2024
2 parents 8cd588d + b06939f commit 61ec1b3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 32 deletions.
Binary file modified images/Prerequisite-Files-Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion notebooks/How_to_Access_GES_DISC_Data_Using_Python.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"\n",
"#### Option 1: Use `requests` <a class=\"anchor\" id=\"download_requests\"></a>\n",
"\n",
"`requests` is a popular Python library that simplifies Python access to Internet-based resources. In the following code, we demonstrate how to use 'Requests' to access GES DISC data using cookies created by a host operating system."
"`requests` is a popular Python library that simplifies Python access to Internet-based resources. In the following code, we demonstrate how to use `requests` to access GES DISC data using cookies created by a host operating system."
]
},
{
Expand Down
41 changes: 10 additions & 31 deletions notebooks/How_to_Generate_Earthdata_Prerequisite_Files.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"\n",
"### Prerequisites\n",
"\n",
"<div style=\"background:#ADD8E6; border:1px solid #000000; padding:5px 10px; color:#000000;\">\n",
" <strong>Warning:</strong> An Earthdata Login account with the \"NASA GES DISC DATA ARCHIVE\" and \"Hyrax in the Cloud\" applications enabled are required to access GES DISC data and store \"Earthdata prerequisite files\". To create an Earthdata Login account, and enable these applications, please visit <a href=\"https://disc.gsfc.nasa.gov/earthdata-login\" target=\"_blank\">this guide</a>.\n",
"</div>\n",
"\n",
"This notebook was written using Python 3.8, and requires the following:\n",
"- Approval to access the GES DISC archives with your Earthdata credentials: https://disc.gsfc.nasa.gov/earthdata-login"
]
Expand Down Expand Up @@ -122,17 +126,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Saved .urs_cookies and .dodsrc to: /Users/cmbattis/\n"
]
}
],
"outputs": [],
"source": [
"from subprocess import Popen\n",
"import platform\n",
Expand Down Expand Up @@ -171,17 +167,9 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Saved .netrc to: /Users/cmbattis/\n"
]
}
],
"outputs": [],
"source": [
"from subprocess import Popen\n",
"from getpass import getpass\n",
Expand Down Expand Up @@ -250,18 +238,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Token retrieved successfully\n",
"Token saved to /Users/cmbattis/.edl_token\n"
]
}
],
"outputs": [],
"source": [
"import requests\n",
"from base64 import b64encode\n",
Expand Down

0 comments on commit 61ec1b3

Please sign in to comment.