|
44 | 44 | "id": "761fde27-8ef4-4805-887c-d795da34902e",
|
45 | 45 | "metadata": {},
|
46 | 46 | "source": [
|
47 |
| - "`pip install zarr`" |
| 47 | + "`pip install zarr xarray[complete] aiohttp requests`" |
48 | 48 | ]
|
49 | 49 | },
|
50 | 50 | {
|
|
73 | 73 | },
|
74 | 74 | {
|
75 | 75 | "cell_type": "code",
|
76 |
| - "execution_count": 16, |
| 76 | + "execution_count": 1, |
77 | 77 | "id": "582e5ae5-e61d-409d-aa33-206f6ff3c0bd",
|
78 | 78 | "metadata": {},
|
79 |
| - "outputs": [], |
| 79 | + "outputs": [ |
| 80 | + { |
| 81 | + "name": "stderr", |
| 82 | + "output_type": "stream", |
| 83 | + "text": [ |
| 84 | + "/mnt/code/.pyenv/versions/3.10.12/envs/coast-10/lib/python3.10/site-packages/utide/harmonics.py:16: RuntimeWarning: invalid value encountered in cast\n", |
| 85 | + "/mnt/code/.pyenv/versions/3.10.12/envs/coast-10/lib/python3.10/site-packages/utide/harmonics.py:17: RuntimeWarning: invalid value encountered in cast\n" |
| 86 | + ] |
| 87 | + } |
| 88 | + ], |
80 | 89 | "source": [
|
81 | 90 | "import coast\n",
|
82 | 91 | "import matplotlib.pyplot as plt\n",
|
83 | 92 | "import datetime\n",
|
84 | 93 | "import numpy as np\n",
|
85 | 94 | "import xarray as xr\n",
|
| 95 | + "import zarr\n", |
86 | 96 | "\n",
|
87 | 97 | "root = \"./\"\n",
|
88 | 98 | "fn_config_t_grid = root + \"./config/example_nemo_monthly_climate.json\"\n",
|
|
114 | 124 | },
|
115 | 125 | {
|
116 | 126 | "cell_type": "code",
|
117 |
| - "execution_count": 43, |
| 127 | + "execution_count": 2, |
118 | 128 | "id": "289bbdfd-991c-41ed-9acd-7e9bb35f157c",
|
119 | 129 | "metadata": {},
|
120 |
| - "outputs": [], |
| 130 | + "outputs": [ |
| 131 | + { |
| 132 | + "name": "stderr", |
| 133 | + "output_type": "stream", |
| 134 | + "text": [ |
| 135 | + "/tmp/ipykernel_221474/396929176.py:1: RuntimeWarning: Failed to open Zarr store with consolidated metadata, but successfully read with non-consolidated metadata. This is typically much slower for opening a dataset. To silence this warning, consider:\n", |
| 136 | + "1. Consolidating metadata in this existing store with zarr.consolidate_metadata().\n", |
| 137 | + "2. Explicitly setting consolidated=False, to avoid trying to read consolidate metadata, or\n", |
| 138 | + "3. Explicitly setting consolidated=True, to raise an error in this case instead of falling back to try reading non-consolidated metadata.\n" |
| 139 | + ] |
| 140 | + } |
| 141 | + ], |
121 | 142 | "source": [
|
122 | 143 | "dom = xr.open_zarr(fn_nemo_dom_mask)\n",
|
123 | 144 | "mesh_zgr = xr.open_zarr(fn_nemo_dom_mesh_zgr)\n",
|
|
126 | 147 | },
|
127 | 148 | {
|
128 | 149 | "cell_type": "code",
|
129 |
| - "execution_count": 44, |
| 150 | + "execution_count": 3, |
130 | 151 | "id": "e1f12c20-4076-4ae0-9135-c95218347805",
|
131 | 152 | "metadata": {},
|
132 | 153 | "outputs": [],
|
|
139 | 160 | },
|
140 | 161 | {
|
141 | 162 | "cell_type": "code",
|
142 |
| - "execution_count": 45, |
| 163 | + "execution_count": 4, |
143 | 164 | "id": "50b2cbb7-a1ad-4ebc-aebb-42a1b8286e58",
|
144 | 165 | "metadata": {},
|
145 | 166 | "outputs": [],
|
|
0 commit comments