Skip to content

Commit adaf309

Browse files
committed
rm rm .ipynb_checkpoints
1 parent 9d2d79a commit adaf309

4 files changed

Lines changed: 121 additions & 179 deletions

03_NSIDCDataAccess_Steiker/.ipynb_checkpoints/NSIDC DAAC ICESat-2 Customize and Access-checkpoint.ipynb

Lines changed: 8 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
" 3) Input data set search criteria using spatial and temporal filters. \n",
1515
" 4) Explore different methods of specifying spatial criteria including lat/lon bounds,\n",
1616
" polygon coordinate pairs, and polygon input from a Shapefile or KML. \n",
17-
" 5) Search for matching files and receiving information about file volume.\n",
17+
" 5) Search for matching files and receive information about file volume.\n",
1818
" 6) Obtain information about subsetting and reformatting capabilities for a specfic data set.\n",
1919
" 7) Configure data request by \"chunking\" request by file number. \n",
2020
" 8) Submit a request and monitoring the status of the request.\n",
2121
" 9) Compare subsetted and original, \"native\" data outputs.\n",
2222
" \n",
23-
"#### Data Used:\n",
24-
"* `s3://pangeo-data-upload-oregon/icesat2/pine_island_glims/glims_polygons.kml` \n",
25-
"\n"
23+
"#### Data Sources:\n",
24+
"The Pine Island Glacier outline was originally downloaded from the the NSIDC [Global Land Ice Measurements from Space (GLIMS) database](http://www.glims.org/maps/glims). Direct download access: http://www.glims.org/maps/info.html?anlys_id=528486"
2625
]
2726
},
2827
{
@@ -62,44 +61,6 @@
6261
"from requests.auth import HTTPBasicAuth"
6362
]
6463
},
65-
{
66-
"cell_type": "markdown",
67-
"metadata": {},
68-
"source": [
69-
"## Pull data from s3 bucket\n",
70-
"\n",
71-
"#### We will pull the following folder from our Amazon s3 bucket:\n",
72-
" 1) Pine Island Glacier outline\n",
73-
"\n",
74-
"#### The Pine Island Glacier outline will be used below for filtering and subsetting the data."
75-
]
76-
},
77-
{
78-
"cell_type": "code",
79-
"execution_count": null,
80-
"metadata": {},
81-
"outputs": [],
82-
"source": [
83-
"%%bash\n",
84-
"\n",
85-
"# Download from s3 using bash magic\n",
86-
"\n",
87-
"cd /home/jovyan/ICESat2_hackweek_tutorials/03_NSIDCDataAccess_Steiker\n",
88-
"aws s3 sync s3://pangeo-data-upload-oregon/icesat2/pine_island_glims/ pine_island_glims/ "
89-
]
90-
},
91-
{
92-
"cell_type": "markdown",
93-
"metadata": {},
94-
"source": [
95-
"#### Data Sources:\n",
96-
"The Pine Island Glacier outline was originally downloaded from the the NSIDC [Global Land Ice Measurements from Space (GLIMS) database](http://www.glims.org/maps/glims). Direct download access: http://www.glims.org/maps/info.html?anlys_id=528486\n",
97-
"\n",
98-
"The unsubsetted data are from the ATL06 data set (more resources below): https://doi.org/10.5067/ATLAS/ATL06.001\n",
99-
"\n",
100-
"The subsetted data were generated using the [NASA Earth Observing System Data and Information System (EOSDIS)](https://earthdata.nasa.gov/eosdis/science-system-description/eosdis-services) Service Interface (ESI)."
101-
]
102-
},
10364
{
10465
"cell_type": "markdown",
10566
"metadata": {},
@@ -384,7 +345,7 @@
384345
"# Use geopandas to read in polygon file\n",
385346
"# Note: a shapefile or geojson, or almost any other vector-based spatial data format could be substituted here.\n",
386347
"\n",
387-
"kml_filepath = str('/home/jovyan/data-access/pine_island_glims/glims_polygons.kml')\n",
348+
"kml_filepath = str(os.getcwd() + '/pine_island_glims/glims_polygons.kml')\n",
388349
"\n",
389350
"#Return a GeoDataFrame object\n",
390351
"gdf = gpd.read_file(kml_filepath)\n",
@@ -1318,8 +1279,8 @@
13181279
" shape_post = {'shapefile': open(kml_filepath, 'rb')}\n",
13191280
" request = session.post(base_url, params=subset_request_params, files=shape_post) \n",
13201281
" \n",
1321-
"# FOR ALL OTHER REQUESTS THAT DO NOT UTILIZED AN UPLOADED POLYGON FILE, USE A GET REQUEST INSTEAD OF POST:\n",
1322-
"# request = session.get(base_url, params=request_params)\n",
1282+
"# # FOR ALL OTHER REQUESTS THAT DO NOT UTILIZED AN UPLOADED POLYGON FILE, USE A GET REQUEST INSTEAD OF POST:\n",
1283+
"# request = session.get(base_url, params=subset_request_params)\n",
13231284
" \n",
13241285
" print('Request HTTP response: ', request.status_code)\n",
13251286
"\n",
@@ -1686,9 +1647,9 @@
16861647
"name": "python",
16871648
"nbconvert_exporter": "python",
16881649
"pygments_lexer": "ipython3",
1689-
"version": "3.6.7"
1650+
"version": "3.7.0"
16901651
}
16911652
},
16921653
"nbformat": 4,
1693-
"nbformat_minor": 2
1654+
"nbformat_minor": 4
16941655
}

0 commit comments

Comments
 (0)