Skip to content

Commit 56855f4

Browse files
committed
Fixes to staged data
1 parent f7f7f42 commit 56855f4

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

JupyterDocs/GDAL_basics/GDAL_basics.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"execution_count": null,
145145
"source": [
146146
"# create .netrc if it does not exist \n",
147-
"if not os.path.exists('~/.netrc'):\n",
147+
"if not os.path.exists(os.path.expanduser('~/.netrc')):\n",
148148
" print('NEEDED To Download ARIA GUNWs: \\n Link to create account : https://urs.earthdata.nasa.gov/')\n",
149149
" earthdata_user = input('Please type your Earthdata username:')\n",
150150
" earthdata_user = str(earthdata_user)\n",
@@ -1340,4 +1340,4 @@
13401340
},
13411341
"nbformat": 4,
13421342
"nbformat_minor": 2
1343-
}
1343+
}

JupyterDocs/ariaDownload/ariaDownload_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"import os\n",
3434
"\n",
3535
"# create .netrc if it does not exist \n",
36-
"if not os.path.exists('~/.netrc'):\n",
36+
"if not os.path.exists(os.path.expanduser('~/.netrc')):\n",
3737
" print('NEEDED To Download ARIA GUNWs: \\n Link to create account : https://urs.earthdata.nasa.gov/')\n",
3838
" earthdata_user = input('Please type your Earthdata username:')\n",
3939
" earthdata_user = str(earthdata_user)\n",
@@ -777,4 +777,4 @@
777777
},
778778
"nbformat": 4,
779779
"nbformat_minor": 2
780-
}
780+
}

JupyterDocs/ariaExtract/ariaExtract_tutorial.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"execution_count": 1,
9898
"source": [
9999
"# option to control the use of pre-staged data; [False/True]\n",
100-
"Use_Staged_Data = True\n",
100+
"Use_Staged_Data = False\n",
101101
"\n",
102102
"# ------------------------------------------------------------------------------------------- #\n",
103103
"# no changed below needed:\n",
@@ -201,7 +201,7 @@
201201
"execution_count": null,
202202
"source": [
203203
"# create .netrc if it does not exist \n",
204-
"if not os.path.exists('~/.netrc'):\n",
204+
"if not os.path.exists(os.path.expanduser('~/.netrc')):\n",
205205
" print('NEEDED To Download ARIA GUNWs: \\n Link to create account : https://urs.earthdata.nasa.gov/')\n",
206206
" earthdata_user = input('Please type your Earthdata username:')\n",
207207
" earthdata_user = str(earthdata_user)\n",
@@ -230,7 +230,7 @@
230230
"execution_count": null,
231231
"source": [
232232
"# create .topoapi if it does not exist \n",
233-
"if not os.path.exists('~/.topoapi'):\n",
233+
"if not os.path.exists(os.path.expanduser('~/.topoapi')):\n",
234234
" print('API key location: My Account > myOpenTopo Authorizations and API Key > Request API key')\n",
235235
" opentopography_api_key = input('Please type your OpenTopo API key:')\n",
236236
" opentopography_api_key = str(opentopography_api_key)\n",
@@ -2231,4 +2231,4 @@
22312231
},
22322232
"nbformat": 4,
22332233
"nbformat_minor": 2
2234-
}
2234+
}

JupyterDocs/ariaMisclosure/ariaMisclosure_tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"execution_count": null,
112112
"source": [
113113
"# create .topoapi if it does not exist \n",
114-
"if not os.path.exists('~/.topoapi'):\n",
114+
"if not os.path.exists(os.path.expanduser('~/.topoapi')):\n",
115115
" print('API key location: My Account > myOpenTopo Authorizations and API Key > Request API key')\n",
116116
" opentopography_api_key = input('Please type your OpenTopo API key:')\n",
117117
" opentopography_api_key = str(opentopography_api_key)\n",
@@ -146,7 +146,7 @@
146146
"execution_count": null,
147147
"source": [
148148
"# create .netrc if it does not exist \n",
149-
"if not os.path.exists('~/.netrc'):\n",
149+
"if not os.path.exists(os.path.expanduser('~/.netrc')):\n",
150150
" print('NEEDED To Download ARIA GUNWs: \\n Link to create account : https://urs.earthdata.nasa.gov/')\n",
151151
" earthdata_user = input('Please type your Earthdata username:')\n",
152152
" earthdata_user = str(earthdata_user)\n",
@@ -1305,4 +1305,4 @@
13051305
},
13061306
"nbformat": 4,
13071307
"nbformat_minor": 2
1308-
}
1308+
}

JupyterDocs/ariaPlot/ariaPlot_tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"\n",
6868
"if Use_Staged_Data:\n",
6969
" # Check if a stage file from S3 already exist, if not try and download it\n",
70-
" f = 'ariaExtract.zip'\n",
70+
" f = 'ariaPlot.zip'\n",
7171
" if not os.path.isfile(f):\n",
7272
" print('\\nAttempting to download staged data ... ')\n",
7373
" try:\n",
@@ -279,7 +279,7 @@
279279
"execution_count": null,
280280
"source": [
281281
"# create .netrc if it does not exist \n",
282-
"if not os.path.exists('~/.netrc'):\n",
282+
"if not os.path.exists(os.path.expanduser('~/.netrc')):\n",
283283
" print('NEEDED To Download ARIA GUNWs: \\n Link to create account : https://urs.earthdata.nasa.gov/')\n",
284284
" earthdata_user = input('Please type your Earthdata username:')\n",
285285
" earthdata_user = str(earthdata_user)\n",
@@ -896,4 +896,4 @@
896896
},
897897
"nbformat": 4,
898898
"nbformat_minor": 2
899-
}
899+
}

JupyterDocs/ariaTSsetup/ariaTSsetup_tutorial.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"\n",
9393
"if Use_Staged_Data:\n",
9494
" # Check if a stage file from S3 already exist, if not try and download it\n",
95-
" f = 'ariaExtract.zip'\n",
95+
" f = 'ariaTSsetup.zip'\n",
9696
" if not os.path.isfile(f):\n",
9797
" print('\\nAttempting to download staged data ... ')\n",
9898
" try:\n",
@@ -146,7 +146,7 @@
146146
"execution_count": null,
147147
"source": [
148148
"# create .topoapi if it does not exist \n",
149-
"if not os.path.exists('~/.topoapi'):\n",
149+
"if not os.path.exists(os.path.expanduser('~/.topoapi')):\n",
150150
" print('API key location: My Account > myOpenTopo Authorizations and API Key > Request API key')\n",
151151
" opentopography_api_key = input('Please type your OpenTopo API key:')\n",
152152
" opentopography_api_key = str(opentopography_api_key)\n",
@@ -329,7 +329,7 @@
329329
"execution_count": null,
330330
"source": [
331331
"# create .netrc if it does not exist \n",
332-
"if not os.path.exists('~/.netrc'):\n",
332+
"if not os.path.exists(os.path.expanduser('~/.netrc')):\n",
333333
" print('NEEDED To Download ARIA GUNWs: \\n Link to create account : https://urs.earthdata.nasa.gov/')\n",
334334
" earthdata_user = input('Please type your Earthdata username:')\n",
335335
" earthdata_user = str(earthdata_user)\n",
@@ -2799,4 +2799,4 @@
27992799
},
28002800
"nbformat": 4,
28012801
"nbformat_minor": 2
2802-
}
2802+
}

0 commit comments

Comments
 (0)