|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "metadata": {}, |
| 6 | + "source": [ |
| 7 | + "## Download data\n", |
| 8 | + "\n", |
| 9 | + "We'll use the earthaccess library to download a single file for the [MUR-SST](https://podaac.jpl.nasa.gov/MEaSUREs-MUR) dataset to use for these examples." |
| 10 | + ] |
| 11 | + }, |
| 12 | + { |
| 13 | + "cell_type": "code", |
| 14 | + "execution_count": 1, |
| 15 | + "metadata": {}, |
| 16 | + "outputs": [], |
| 17 | + "source": [ |
| 18 | + "import earthaccess" |
| 19 | + ] |
| 20 | + }, |
| 21 | + { |
| 22 | + "cell_type": "code", |
| 23 | + "execution_count": 2, |
| 24 | + "metadata": {}, |
| 25 | + "outputs": [ |
| 26 | + { |
| 27 | + "data": { |
| 28 | + "application/vnd.jupyter.widget-view+json": { |
| 29 | + "model_id": "35236c689f244982a96bc3e9bd8debd2", |
| 30 | + "version_major": 2, |
| 31 | + "version_minor": 0 |
| 32 | + }, |
| 33 | + "text/plain": [ |
| 34 | + "QUEUEING TASKS | : 0%| | 0/1 [00:00<?, ?it/s]" |
| 35 | + ] |
| 36 | + }, |
| 37 | + "metadata": {}, |
| 38 | + "output_type": "display_data" |
| 39 | + }, |
| 40 | + { |
| 41 | + "data": { |
| 42 | + "application/vnd.jupyter.widget-view+json": { |
| 43 | + "model_id": "811cbf7acc3b4b678bb501b69915e523", |
| 44 | + "version_major": 2, |
| 45 | + "version_minor": 0 |
| 46 | + }, |
| 47 | + "text/plain": [ |
| 48 | + "PROCESSING TASKS | : 0%| | 0/1 [00:00<?, ?it/s]" |
| 49 | + ] |
| 50 | + }, |
| 51 | + "metadata": {}, |
| 52 | + "output_type": "display_data" |
| 53 | + }, |
| 54 | + { |
| 55 | + "data": { |
| 56 | + "application/vnd.jupyter.widget-view+json": { |
| 57 | + "model_id": "efedb4699c54415bbe104c0dc09ba835", |
| 58 | + "version_major": 2, |
| 59 | + "version_minor": 0 |
| 60 | + }, |
| 61 | + "text/plain": [ |
| 62 | + "COLLECTING RESULTS | : 0%| | 0/1 [00:00<?, ?it/s]" |
| 63 | + ] |
| 64 | + }, |
| 65 | + "metadata": {}, |
| 66 | + "output_type": "display_data" |
| 67 | + }, |
| 68 | + { |
| 69 | + "data": { |
| 70 | + "text/plain": [ |
| 71 | + "'../data/20020601090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1.nc'" |
| 72 | + ] |
| 73 | + }, |
| 74 | + "execution_count": 2, |
| 75 | + "metadata": {}, |
| 76 | + "output_type": "execute_result" |
| 77 | + } |
| 78 | + ], |
| 79 | + "source": [ |
| 80 | + "results = earthaccess.search_data(\n", |
| 81 | + " concept_id=\"C1996881146-POCLOUD\", count=1, temporal=(\"2002-06-01\", \"2002-06-01\")\n", |
| 82 | + ")\n", |
| 83 | + "earthaccess.download(results, \"../data\")[0]" |
| 84 | + ] |
| 85 | + } |
| 86 | + ], |
| 87 | + "metadata": { |
| 88 | + "kernelspec": { |
| 89 | + "display_name": "test", |
| 90 | + "language": "python", |
| 91 | + "name": "python3" |
| 92 | + }, |
| 93 | + "language_info": { |
| 94 | + "codemirror_mode": { |
| 95 | + "name": "ipython", |
| 96 | + "version": 3 |
| 97 | + }, |
| 98 | + "file_extension": ".py", |
| 99 | + "mimetype": "text/x-python", |
| 100 | + "name": "python", |
| 101 | + "nbconvert_exporter": "python", |
| 102 | + "pygments_lexer": "ipython3", |
| 103 | + "version": "3.13.2" |
| 104 | + } |
| 105 | + }, |
| 106 | + "nbformat": 4, |
| 107 | + "nbformat_minor": 2 |
| 108 | +} |
0 commit comments