Skip to content

Commit 7ac601c

Browse files
committed
Iceflow example notebook: ensure data dir exists before download
1 parent 2d1cc5a commit 7ac601c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/notebooks/iceflow-example.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"source": [
7777
"# Downloaded data will go here.\n",
7878
"data_path = Path(\"./downloaded-data/\")\n",
79+
"data_path.mkdir(exist_ok=True)\n",
7980
"\n",
8081
"# Define the dataset that we want to search for.\n",
8182
"atm1b_v1_dataset = ILATM1BDataset(version=\"1\")\n",
@@ -148,13 +149,13 @@
148149
"name": "stderr",
149150
"output_type": "stream",
150151
"text": [
151-
"\u001b[32m2025-06-04 10:49:03.089\u001b[0m | \u001b[1mINFO \u001b[0m | \u001b[36mnsidc.iceflow.data.fetch\u001b[0m:\u001b[36m_download_iceflow_search_result\u001b[0m:\u001b[36m72\u001b[0m - \u001b[1mDownloading 1 granules to downloaded-data/ILATM1B_1.\u001b[0m\n"
152+
"\u001b[32m2025-06-10 11:00:52.469\u001b[0m | \u001b[1mINFO \u001b[0m | \u001b[36mnsidc.iceflow.data.fetch\u001b[0m:\u001b[36m_download_iceflow_search_result\u001b[0m:\u001b[36m72\u001b[0m - \u001b[1mDownloading 1 granules to downloaded-data/ILATM1B_1.\u001b[0m\n"
152153
]
153154
},
154155
{
155156
"data": {
156157
"application/vnd.jupyter.widget-view+json": {
157-
"model_id": "c2ef3b39a16c4dbf8a18ddb450d7396c",
158+
"model_id": "28d39c1f197042658119f2853eb69670",
158159
"version_major": 2,
159160
"version_minor": 0
160161
},
@@ -168,7 +169,7 @@
168169
{
169170
"data": {
170171
"application/vnd.jupyter.widget-view+json": {
171-
"model_id": "4561ec5d171246ae88aa01f5f0deaa4e",
172+
"model_id": "1e4341335843469e8757c8ebe0c3ca3a",
172173
"version_major": 2,
173174
"version_minor": 0
174175
},
@@ -182,7 +183,7 @@
182183
{
183184
"data": {
184185
"application/vnd.jupyter.widget-view+json": {
185-
"model_id": "ca7b460ffdd74b39a756d86fd0d41e8a",
186+
"model_id": "b43146c391224e4494a864e6c3f0f364",
186187
"version_major": 2,
187188
"version_minor": 0
188189
},

0 commit comments

Comments
 (0)