Skip to content

Commit 1c5a95a

Browse files
authored
Merge pull request #68 from andrewdelman/subset_download
Subset download tutorial - fixed links to files
2 parents 46cee36 + 475fa27 commit 1c5a95a

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

ECCO-ACCESS/Downloading_ECCO_datasets_from_PODAAC/Tutorial_Python3_Downloading_ECCO_Subsets.ipynb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,7 +3010,7 @@
30103010
},
30113011
{
30123012
"cell_type": "markdown",
3013-
"id": "171854ab",
3013+
"id": "3dbac941",
30143014
"metadata": {},
30153015
"source": [
30163016
"But perhaps we don't want to plot the global domain when we only have data for part of the Northern Hemisphere. The `resample_to_latlon` function from the `ecco_v4_py` package allows us to reinterpolate the native grid output to a lat/lon grid of our choosing. Then we can use the versatile [cartopy](https://scitools.org.uk/cartopy/docs/latest/) package to produce the map. This is the package that also produces the maps in the `ecco.plot_proj_to_latlon_grid` function, but by importing `cartopy` directly we can customize the map more."
@@ -3019,7 +3019,7 @@
30193019
{
30203020
"cell_type": "code",
30213021
"execution_count": 8,
3022-
"id": "b830fb85",
3022+
"id": "db33f078",
30233023
"metadata": {},
30243024
"outputs": [
30253025
{
@@ -3084,7 +3084,7 @@
30843084
{
30853085
"cell_type": "code",
30863086
"execution_count": 9,
3087-
"id": "6baed3d6",
3087+
"id": "8fe595ed",
30883088
"metadata": {},
30893089
"outputs": [
30903090
{
@@ -3252,7 +3252,7 @@
32523252
},
32533253
{
32543254
"cell_type": "markdown",
3255-
"id": "3739c6e1",
3255+
"id": "21914828",
32563256
"metadata": {},
32573257
"source": [
32583258
"We can see that there is a seasonal increase in SSH from winter to summer in most locations (likely driven by density changes/steric height), except there is a decrease in the marginal seas of northern Europe.\n",
@@ -3268,7 +3268,7 @@
32683268
{
32693269
"cell_type": "code",
32703270
"execution_count": 12,
3271-
"id": "1eb9ea02",
3271+
"id": "df6e7621",
32723272
"metadata": {},
32733273
"outputs": [
32743274
{
@@ -3313,7 +3313,7 @@
33133313
{
33143314
"cell_type": "code",
33153315
"execution_count": 13,
3316-
"id": "3c1f7fda",
3316+
"id": "914d5525",
33173317
"metadata": {},
33183318
"outputs": [
33193319
{
@@ -3351,7 +3351,7 @@
33513351
{
33523352
"cell_type": "code",
33533353
"execution_count": 14,
3354-
"id": "4153be89",
3354+
"id": "7e75addf",
33553355
"metadata": {},
33563356
"outputs": [
33573357
{
@@ -4119,16 +4119,16 @@
41194119
},
41204120
{
41214121
"cell_type": "markdown",
4122-
"id": "93d8b42c",
4122+
"id": "6ae6aa38",
41234123
"metadata": {},
41244124
"source": [
4125-
"You can download data about the North Atlantic storms 2004-2006 [here](https://raw.githubusercontent.com/ECCO-GROUP/ECCO-v4-Python-Tutorial/tree/master/ECCO-ACCESS/misc/IBTrACS.NA.2004-2006.nc) (data sourced from [IBTrACS](https://www.ncei.noaa.gov/products/international-best-track-archive) version 4). Two of the major hurricanes that traversed the Gulf of Mexico during this period were Ivan in 2004 and Katrina in 2005. Let's plot data on Ivan's wind speed in the Gulf of Mexico"
4125+
"You can download data about the North Atlantic storms 2004-2006 [here](https://raw.githubusercontent.com/ECCO-GROUP/ECCO-v4-Python-Tutorial/master/ECCO-ACCESS/misc/IBTrACS.NA.2004-2006.nc) (data sourced from [IBTrACS](https://www.ncei.noaa.gov/products/international-best-track-archive) version 4). Two of the major hurricanes that traversed the Gulf of Mexico during this period were Ivan in 2004 and Katrina in 2005. Let's plot data on Ivan's wind speed in the Gulf of Mexico"
41264126
]
41274127
},
41284128
{
41294129
"cell_type": "code",
41304130
"execution_count": 15,
4131-
"id": "2db87993",
4131+
"id": "ffbd4823",
41324132
"metadata": {},
41334133
"outputs": [
41344134
{
@@ -4156,7 +4156,7 @@
41564156
},
41574157
{
41584158
"cell_type": "markdown",
4159-
"id": "55302056",
4159+
"id": "83ea4544",
41604160
"metadata": {},
41614161
"source": [
41624162
"Now let's look at the change in SST in the Gulf of Mexico from before (2004-09-05) to after (2004-09-17) Ivan's higher wind speeds."
@@ -4165,7 +4165,7 @@
41654165
{
41664166
"cell_type": "code",
41674167
"execution_count": 16,
4168-
"id": "486b9dad",
4168+
"id": "a301a827",
41694169
"metadata": {},
41704170
"outputs": [
41714171
{
@@ -4208,7 +4208,7 @@
42084208
},
42094209
{
42104210
"cell_type": "markdown",
4211-
"id": "24f32880",
4211+
"id": "b9db5363",
42124212
"metadata": {},
42134213
"source": [
42144214
"We can clearly see the \"cold wake\" effect of the hurricane's passage. Let's look at the same plot for Hurricane Katrina:"
@@ -4217,7 +4217,7 @@
42174217
{
42184218
"cell_type": "code",
42194219
"execution_count": 17,
4220-
"id": "0fae8c32",
4220+
"id": "e97429fd",
42214221
"metadata": {},
42224222
"outputs": [
42234223
{
@@ -4260,7 +4260,7 @@
42604260
},
42614261
{
42624262
"cell_type": "markdown",
4263-
"id": "a426b3e2",
4263+
"id": "62afe147",
42644264
"metadata": {},
42654265
"source": [
42664266
"Now let's look at this effect another way: at the time series of SST near 28.4 N, 87.5 W, where both hurricanes had an impact."
@@ -4269,7 +4269,7 @@
42694269
{
42704270
"cell_type": "code",
42714271
"execution_count": 18,
4272-
"id": "8d549de1",
4272+
"id": "e95fd5d7",
42734273
"metadata": {},
42744274
"outputs": [],
42754275
"source": [
@@ -4287,7 +4287,7 @@
42874287
{
42884288
"cell_type": "code",
42894289
"execution_count": 19,
4290-
"id": "9277b18d",
4290+
"id": "da033a8e",
42914291
"metadata": {},
42924292
"outputs": [
42934293
{
@@ -4324,7 +4324,7 @@
43244324
},
43254325
{
43264326
"cell_type": "markdown",
4327-
"id": "a43c13bb",
4327+
"id": "cc3d0b84",
43284328
"metadata": {},
43294329
"source": [
43304330
"The quick decreases in SST (over 1 or 2 days) from the passage of both Ivan and Katrina are clearly visible, compared to 2006 when there were no major hurricanes passing over.\n",
@@ -4333,15 +4333,15 @@
43334333
"## Example 3: Generating URL list to download tropical Pacific salinity fluxes\n",
43344334
"\n",
43354335
"Another option that `ecco_podaac_download_subset` provides is to generate a list of OPeNDAP URLs that would be used to download the files, without actually carrying out the downloads. This can be useful if you want to check that your request will download the files you want *before* downloading, or if you would prefer to carry out the downloads using `wget`, `curl`, or another utility.\n",
4336-
"> A bash shell script to download files from PO.DAAC using `wget` is provided [here](https://raw.githubusercontent.com/ECCO-GROUP/ECCO-v4-Python-Tutorial/tree/master/ECCO-ACCESS/Downloading_ECCO_datasets_from_PODAAC/wget_download_fromlist.sh).\n",
4336+
"> A bash shell script to download files from PO.DAAC using `wget` is provided [here](https://raw.githubusercontent.com/ECCO-GROUP/ECCO-v4-Python-Tutorial/master/ECCO-ACCESS/Downloading_ECCO_datasets_from_PODAAC/wget_download_fromlist.sh).\n",
43374337
"\n",
43384338
"Let's say we are interested in doing a freshwater or salinity budget in the tropical Pacific, in the upper 200 m. The tutorial on salt/salinity/freshwater budgets specifies [which datasets will be needed](https://ecco-v4-python-tutorial.readthedocs.io/ECCO_v4_Salt_and_salinity_budget.html#Datasets-to-download) to close the budget. To limit the size of our downloads, we should first identify the tiles that we would need to download, and also in this case the depth range."
43394339
]
43404340
},
43414341
{
43424342
"cell_type": "code",
43434343
"execution_count": 20,
4344-
"id": "cfd51990",
4344+
"id": "ac1a272d",
43454345
"metadata": {},
43464346
"outputs": [
43474347
{
@@ -4397,7 +4397,7 @@
43974397
},
43984398
{
43994399
"cell_type": "markdown",
4400-
"id": "f252585f",
4400+
"id": "dcb2c0c1",
44014401
"metadata": {},
44024402
"source": [
44034403
"Next we generate the list needed to download the monthly mean salinity fluxes (one of the datasets needed for the budget) with the option `download_or_list='list'`. The list will be written to the file `TPac_salbudget_download.txt` in the current directory."
@@ -4406,7 +4406,7 @@
44064406
{
44074407
"cell_type": "code",
44084408
"execution_count": 21,
4409-
"id": "9dc42444",
4409+
"id": "b88affcf",
44104410
"metadata": {},
44114411
"outputs": [
44124412
{
@@ -4441,10 +4441,10 @@
44414441
},
44424442
{
44434443
"cell_type": "markdown",
4444-
"id": "88078717",
4444+
"id": "fb2daad0",
44454445
"metadata": {},
44464446
"source": [
4447-
"Note that if the file specified by `list_filename` already exists, the file is not overwritten; the download URLs are just appended to the end of the list. This is helpful for putting URLs from multiple `ecco_podaac_download_subset` requests in a single text file. Then the files can be downloaded in a single call to `wget`, e.g., using the shell script [wget_download_fromlist.sh](https://raw.githubusercontent.com/ECCO-GROUP/ECCO-v4-Python-Tutorial/tree/master/ECCO-ACCESS/Downloading_ECCO_datasets_from_PODAAC/wget_download_fromlist.sh)."
4447+
"Note that if the file specified by `list_filename` already exists, the file is not overwritten; the download URLs are just appended to the end of the list. This is helpful for putting URLs from multiple `ecco_podaac_download_subset` requests in a single text file. Then the files can be downloaded in a single call to `wget`, e.g., using the shell script [wget_download_fromlist.sh](https://raw.githubusercontent.com/ECCO-GROUP/ECCO-v4-Python-Tutorial/master/ECCO-ACCESS/Downloading_ECCO_datasets_from_PODAAC/wget_download_fromlist.sh)."
44484448
]
44494449
}
44504450
],

0 commit comments

Comments
 (0)