|
9 | 9 | },
|
10 | 10 | {
|
11 | 11 | "cell_type": "code",
|
12 |
| - "execution_count": null, |
| 12 | + "execution_count": 1, |
13 | 13 | "metadata": {},
|
14 | 14 | "outputs": [],
|
15 | 15 | "source": [
|
|
38 | 38 | },
|
39 | 39 | {
|
40 | 40 | "cell_type": "code",
|
41 |
| - "execution_count": null, |
| 41 | + "execution_count": 2, |
42 | 42 | "metadata": {},
|
43 | 43 | "outputs": [],
|
44 | 44 | "source": [
|
|
53 | 53 | },
|
54 | 54 | {
|
55 | 55 | "cell_type": "code",
|
56 |
| - "execution_count": null, |
| 56 | + "execution_count": 3, |
57 | 57 | "metadata": {},
|
58 | 58 | "outputs": [],
|
59 | 59 | "source": [
|
|
81 | 81 | },
|
82 | 82 | {
|
83 | 83 | "cell_type": "code",
|
84 |
| - "execution_count": null, |
| 84 | + "execution_count": 4, |
85 | 85 | "metadata": {},
|
86 | 86 | "outputs": [],
|
87 | 87 | "source": [
|
|
95 | 95 | },
|
96 | 96 | {
|
97 | 97 | "cell_type": "code",
|
98 |
| - "execution_count": null, |
| 98 | + "execution_count": 5, |
99 | 99 | "metadata": {
|
100 | 100 | "jupyter": {
|
101 | 101 | "source_hidden": true
|
|
120 | 120 | },
|
121 | 121 | {
|
122 | 122 | "cell_type": "code",
|
123 |
| - "execution_count": null, |
| 123 | + "execution_count": 6, |
124 | 124 | "metadata": {},
|
125 |
| - "outputs": [], |
| 125 | + "outputs": [ |
| 126 | + { |
| 127 | + "name": "stdout", |
| 128 | + "output_type": "stream", |
| 129 | + "text": [ |
| 130 | + "There are 2 granules of ATL10 version 005 over my area and time of interest.\n", |
| 131 | + "The average size of each granule is 168.34 MB and the total size of all 2 granules is 336.69 MB\n", |
| 132 | + "\n", |
| 133 | + "There are 4 granules of ATL07 version 005 over my area and time of interest.\n", |
| 134 | + "The average size of each granule is 320.07 MB and the total size of all 4 granules is 1280.29 MB\n", |
| 135 | + "\n", |
| 136 | + "There are 13 granules of MOD29 version 61 over my area and time of interest.\n", |
| 137 | + "The average size of each granule is 2.80 MB and the total size of all 13 granules is 36.40 MB\n", |
| 138 | + "\n" |
| 139 | + ] |
| 140 | + } |
| 141 | + ], |
126 | 142 | "source": [
|
127 | 143 | "# Query number of granules (paging over results)\n",
|
128 | 144 | "granule_search_url = 'https://cmr.earthdata.nasa.gov/search/granules'\n",
|
|
180 | 196 | },
|
181 | 197 | {
|
182 | 198 | "cell_type": "code",
|
183 |
| - "execution_count": null, |
| 199 | + "execution_count": 7, |
184 | 200 | "metadata": {},
|
185 |
| - "outputs": [], |
| 201 | + "outputs": [ |
| 202 | + { |
| 203 | + "name": "stdin", |
| 204 | + "output_type": "stream", |
| 205 | + "text": [ |
| 206 | + "Earthdata Login password: ·········\n" |
| 207 | + ] |
| 208 | + } |
| 209 | + ], |
186 | 210 | "source": [
|
187 |
| - "uid = '' # Enter Earthdata Login user name\n", |
| 211 | + "uid = 'amy.steiker' # Enter Earthdata Login user name\n", |
188 | 212 | "pswd = getpass.getpass('Earthdata Login password: ') # Input and store Earthdata Login password\n",
|
189 |
| - "email = '' # Enter email associated with Earthata Login account" |
| 213 | + "email = '[email protected]' # Enter email associated with Earthata Login account" |
190 | 214 | ]
|
191 | 215 | },
|
192 | 216 | {
|
|
198 | 222 | },
|
199 | 223 | {
|
200 | 224 | "cell_type": "code",
|
201 |
| - "execution_count": null, |
| 225 | + "execution_count": 8, |
202 | 226 | "metadata": {},
|
203 | 227 | "outputs": [],
|
204 | 228 | "source": [
|
|
226 | 250 | },
|
227 | 251 | {
|
228 | 252 | "cell_type": "code",
|
229 |
| - "execution_count": null, |
| 253 | + "execution_count": 9, |
230 | 254 | "metadata": {},
|
231 | 255 | "outputs": [],
|
232 | 256 | "source": [
|
|
267 | 291 | },
|
268 | 292 | {
|
269 | 293 | "cell_type": "code",
|
270 |
| - "execution_count": null, |
| 294 | + "execution_count": 10, |
271 | 295 | "metadata": {},
|
272 | 296 | "outputs": [],
|
273 | 297 | "source": [
|
|
302 | 326 | },
|
303 | 327 | {
|
304 | 328 | "cell_type": "code",
|
305 |
| - "execution_count": null, |
| 329 | + "execution_count": 11, |
306 | 330 | "metadata": {},
|
307 |
| - "outputs": [], |
| 331 | + "outputs": [ |
| 332 | + { |
| 333 | + "name": "stdout", |
| 334 | + "output_type": "stream", |
| 335 | + "text": [ |
| 336 | + "\n", |
| 337 | + "https://n5eil02u.ecs.nsidc.org/egi/request?short_name=ATL10&version=005&bounding_box=140,72,153,80&temporal=2019-03-23T00:00:00Z,2019-03-23T23:59:59Z&bbox=140,72,153,80&time=2019-03-23T00:00:00,2019-03-23T23:59:59&[email protected]&request_mode=async&page_size=2000&page_num=1\n", |
| 338 | + "\n", |
| 339 | + "https://n5eil02u.ecs.nsidc.org/egi/request?short_name=ATL07&version=005&bounding_box=140,72,153,80&temporal=2019-03-23T00:00:00Z,2019-03-23T23:59:59Z&bbox=140,72,153,80&time=2019-03-23T00:00:00,2019-03-23T23:59:59&coverage=/gt1l/sea_ice_segments/delta_time,/gt1l/sea_ice_segments/latitude,/gt1l/sea_ice_segments/longitude,/gt1l/sea_ice_segments/heights/height_segment_confidence,/gt1l/sea_ice_segments/heights/height_segment_height,/gt1l/sea_ice_segments/heights/height_segment_quality,/gt1l/sea_ice_segments/heights/height_segment_surface_error_est,/gt2l/sea_ice_segments/delta_time,/gt2l/sea_ice_segments/latitude,/gt2l/sea_ice_segments/longitude,/gt2l/sea_ice_segments/heights/height_segment_confidence,/gt2l/sea_ice_segments/heights/height_segment_height,/gt2l/sea_ice_segments/heights/height_segment_quality,/gt2l/sea_ice_segments/heights/height_segment_surface_error_est,/gt3l/sea_ice_segments/delta_time,/gt3l/sea_ice_segments/latitude,/gt3l/sea_ice_segments/longitude,/gt3l/sea_ice_segments/heights/height_segment_confidence,/gt3l/sea_ice_segments/heights/height_segment_height,/gt3l/sea_ice_segments/heights/height_segment_quality,/gt3l/sea_ice_segments/heights/height_segment_surface_error_est& [email protected]&request_mode=async&page_size=2000&page_num=1\n", |
| 340 | + "\n", |
| 341 | + "https://n5eil02u.ecs.nsidc.org/egi/request?short_name=MOD29&version=61&bounding_box=140,72,153,80&temporal=2019-03-23T00:00:00Z,2019-03-23T23:59:59Z&bbox=140,72,153,80&[email protected]&request_mode=async&page_size=2000&page_num=1\n" |
| 342 | + ] |
| 343 | + } |
| 344 | + ], |
308 | 345 | "source": [
|
309 | 346 | "endpoint_list = [] \n",
|
310 | 347 | "for k, v in data_dict.items():\n",
|
|
340 | 377 | },
|
341 | 378 | {
|
342 | 379 | "cell_type": "code",
|
343 |
| - "execution_count": null, |
| 380 | + "execution_count": 12, |
344 | 381 | "metadata": {},
|
345 |
| - "outputs": [], |
| 382 | + "outputs": [ |
| 383 | + { |
| 384 | + "name": "stdout", |
| 385 | + "output_type": "stream", |
| 386 | + "text": [ |
| 387 | + "ATL10 Order: 1\n", |
| 388 | + "Request HTTP response: 201\n", |
| 389 | + "order ID: 5000003709700\n", |
| 390 | + "status URL: https://n5eil02u.ecs.nsidc.org/egi/request/5000003709700\n", |
| 391 | + "HTTP response from order response URL: 201\n", |
| 392 | + "Data request 1 is submitting...\n", |
| 393 | + "Initial request status is processing\n", |
| 394 | + "Status is not complete. Trying again.\n", |
| 395 | + "Retry request status is: complete\n", |
| 396 | + "Zip download URL: https://n5eil02u.ecs.nsidc.org/esir/5000003709700.zip\n", |
| 397 | + "Beginning download of zipped output...\n", |
| 398 | + "Data request 1 is complete.\n", |
| 399 | + "\n", |
| 400 | + "ATL07 Order: 1\n", |
| 401 | + "Request HTTP response: 201\n", |
| 402 | + "order ID: 5000003709701\n", |
| 403 | + "status URL: https://n5eil02u.ecs.nsidc.org/egi/request/5000003709701\n", |
| 404 | + "HTTP response from order response URL: 201\n", |
| 405 | + "Data request 1 is submitting...\n", |
| 406 | + "Initial request status is processing\n", |
| 407 | + "Status is not complete. Trying again.\n", |
| 408 | + "Retry request status is: complete\n", |
| 409 | + "Zip download URL: https://n5eil02u.ecs.nsidc.org/esir/5000003709701.zip\n", |
| 410 | + "Beginning download of zipped output...\n", |
| 411 | + "Data request 1 is complete.\n", |
| 412 | + "\n", |
| 413 | + "MOD29 Order: 1\n", |
| 414 | + "Request HTTP response: 201\n", |
| 415 | + "order ID: 5000003709702\n", |
| 416 | + "status URL: https://n5eil02u.ecs.nsidc.org/egi/request/5000003709702\n", |
| 417 | + "HTTP response from order response URL: 201\n", |
| 418 | + "Data request 1 is submitting...\n", |
| 419 | + "Initial request status is processing\n", |
| 420 | + "Status is not complete. Trying again.\n", |
| 421 | + "Retry request status is: complete\n", |
| 422 | + "Zip download URL: https://n5eil02u.ecs.nsidc.org/esir/5000003709702.zip\n", |
| 423 | + "Beginning download of zipped output...\n", |
| 424 | + "Data request 1 is complete.\n", |
| 425 | + "\n" |
| 426 | + ] |
| 427 | + } |
| 428 | + ], |
346 | 429 | "source": [
|
347 | 430 | "from xml.etree import ElementTree as ET\n",
|
348 | 431 | "\n",
|
|
447 | 530 | },
|
448 | 531 | {
|
449 | 532 | "cell_type": "code",
|
450 |
| - "execution_count": null, |
| 533 | + "execution_count": 13, |
451 | 534 | "metadata": {},
|
452 | 535 | "outputs": [],
|
453 | 536 | "source": [
|
|
466 | 549 | ],
|
467 | 550 | "metadata": {
|
468 | 551 | "kernelspec": {
|
469 |
| - "display_name": "Python 3", |
| 552 | + "display_name": "Python 3 (ipykernel)", |
470 | 553 | "language": "python",
|
471 | 554 | "name": "python3"
|
472 | 555 | },
|
|
480 | 563 | "name": "python",
|
481 | 564 | "nbconvert_exporter": "python",
|
482 | 565 | "pygments_lexer": "ipython3",
|
483 |
| - "version": "3.7.3" |
| 566 | + "version": "3.9.13" |
484 | 567 | }
|
485 | 568 | },
|
486 | 569 | "nbformat": 4,
|
|
0 commit comments