Skip to content

Commit 38c8bb7

Browse files
Merge pull request #261 from podaac/vds_recipes_smallupdate
Small updates to kerchunk and virtualizarr recipe notebooks
2 parents d94abf1 + 08a4586 commit 38c8bb7

2 files changed

Lines changed: 22 additions & 5 deletions

File tree

notebooks/Advanced_cloud/kerchunk_recipes.ipynb

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,19 @@
654654
"metadata": {},
655655
"source": [
656656
"### 1.3 Create the combined reference file and use it to open the data\n",
657-
"However the single reference files were generated in the previous section, they can now be used to create a single reference file for the entire year 2019. The computation time for this step can also be decreased with parallel computing, but in this case serial computing is used."
657+
"However the single reference files were generated in the previous section, they can now be used to create a single reference file for the entire year 2019. The computation time for this step can also be decreased with parallel computing, but in this case serial computing is used.\n",
658+
"\n",
659+
"***Important: Modify the `time_invariant_dims_and_coords` list in the next block. List all the NC dimension and coordinate names other than time. This is necessary to ensure they stay 1D and do not get a dummy time dimension added to them.***"
660+
]
661+
},
662+
{
663+
"cell_type": "code",
664+
"execution_count": null,
665+
"id": "9fdf7203-9cf9-47df-89f8-82be7f6ccebf",
666+
"metadata": {},
667+
"outputs": [],
668+
"source": [
669+
"time_invariant_dims_and_coords = []"
658670
]
659671
},
660672
{
@@ -683,7 +695,12 @@
683695
"ref_files_indv.sort()\n",
684696
"\n",
685697
"## Combined reference file\n",
686-
"kwargs_mzz = {'remote_protocol':\"s3\", 'remote_options':fs.storage_options, 'concat_dims':[\"time\"]}\n",
698+
"kwargs_mzz = {\n",
699+
" 'remote_protocol':\"s3\", \n",
700+
" 'remote_options':fs.storage_options, \n",
701+
" 'concat_dims':[\"time\"]\n",
702+
" 'identical_dims':time_invariant_dims_and_coords\n",
703+
" }\n",
687704
"mzz = MultiZarrToZarr(ref_files_indv, **kwargs_mzz)\n",
688705
"ref_combined = mzz.translate()\n",
689706
"\n",
@@ -2266,7 +2283,7 @@
22662283
"name": "python",
22672284
"nbconvert_exporter": "python",
22682285
"pygments_lexer": "ipython3",
2269-
"version": "3.12.0"
2286+
"version": "3.12.9"
22702287
}
22712288
},
22722289
"nbformat": 4,

notebooks/Advanced_cloud/virtualizarr_recipes.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"matplotlib==3.9.2\n",
7878
"jupyterlab\n",
7979
"jupyter-server-proxy\n",
80-
"virtualizarr==1.3.0\n",
80+
"virtualizarr==1.2.0\n",
8181
"kerchunk==0.2.7\n",
8282
"```\n",
8383
"And optionally:\n",
@@ -990,7 +990,7 @@
990990
"name": "python",
991991
"nbconvert_exporter": "python",
992992
"pygments_lexer": "ipython3",
993-
"version": "3.12.9"
993+
"version": "3.12.0"
994994
}
995995
},
996996
"nbformat": 4,

0 commit comments

Comments
 (0)