|
6 | 6 | "id": "da9139cc", |
7 | 7 | "metadata": { |
8 | 8 | "execution": { |
9 | | - "iopub.execute_input": "2026-03-30T01:03:13.606739Z", |
10 | | - "iopub.status.busy": "2026-03-30T01:03:13.606597Z", |
11 | | - "iopub.status.idle": "2026-03-30T01:03:13.613466Z", |
12 | | - "shell.execute_reply": "2026-03-30T01:03:13.612167Z", |
13 | | - "shell.execute_reply.started": "2026-03-30T01:03:13.606724Z" |
| 9 | + "iopub.execute_input": "2026-03-30T13:09:30.606395Z", |
| 10 | + "iopub.status.busy": "2026-03-30T13:09:30.606270Z", |
| 11 | + "iopub.status.idle": "2026-03-30T13:09:30.611784Z", |
| 12 | + "shell.execute_reply": "2026-03-30T13:09:30.608914Z", |
| 13 | + "shell.execute_reply.started": "2026-03-30T13:09:30.606380Z" |
14 | 14 | } |
15 | 15 | }, |
16 | 16 | "outputs": [], |
|
51 | 51 | "id": "9e9nyjdx06f", |
52 | 52 | "metadata": { |
53 | 53 | "execution": { |
54 | | - "iopub.execute_input": "2026-03-30T01:03:13.614308Z", |
55 | | - "iopub.status.busy": "2026-03-30T01:03:13.614115Z", |
56 | | - "iopub.status.idle": "2026-03-30T01:03:27.161046Z", |
57 | | - "shell.execute_reply": "2026-03-30T01:03:27.160587Z", |
58 | | - "shell.execute_reply.started": "2026-03-30T01:03:13.614287Z" |
| 54 | + "iopub.execute_input": "2026-03-30T13:09:30.613147Z", |
| 55 | + "iopub.status.busy": "2026-03-30T13:09:30.612776Z", |
| 56 | + "iopub.status.idle": "2026-03-30T13:09:44.301116Z", |
| 57 | + "shell.execute_reply": "2026-03-30T13:09:44.300677Z", |
| 58 | + "shell.execute_reply.started": "2026-03-30T13:09:30.613126Z" |
59 | 59 | } |
60 | 60 | }, |
61 | 61 | "outputs": [ |
62 | 62 | { |
63 | 63 | "data": { |
64 | 64 | "text/plain": [ |
65 | | - "<donfig.config_obj.ConfigSet at 0x109d94ec0>" |
| 65 | + "<donfig.config_obj.ConfigSet at 0x10e48cec0>" |
66 | 66 | ] |
67 | 67 | }, |
68 | 68 | "execution_count": 2, |
|
103 | 103 | "id": "v6cot74r1gq", |
104 | 104 | "metadata": { |
105 | 105 | "execution": { |
106 | | - "iopub.execute_input": "2026-03-30T01:03:27.161531Z", |
107 | | - "iopub.status.busy": "2026-03-30T01:03:27.161384Z", |
108 | | - "iopub.status.idle": "2026-03-30T01:03:46.210431Z", |
109 | | - "shell.execute_reply": "2026-03-30T01:03:46.209459Z", |
110 | | - "shell.execute_reply.started": "2026-03-30T01:03:27.161522Z" |
| 106 | + "iopub.execute_input": "2026-03-30T13:09:44.301615Z", |
| 107 | + "iopub.status.busy": "2026-03-30T13:09:44.301466Z", |
| 108 | + "iopub.status.idle": "2026-03-30T13:09:45.297053Z", |
| 109 | + "shell.execute_reply": "2026-03-30T13:09:45.292702Z", |
| 110 | + "shell.execute_reply.started": "2026-03-30T13:09:44.301605Z" |
111 | 111 | } |
112 | 112 | }, |
113 | 113 | "outputs": [ |
|
117 | 117 | "text": [ |
118 | 118 | "Members: [('cell_ids', <Array object_store://HTTPStore(\"https://data-taos.ifremer.fr/GRID4EARTH/no_chunk_healpix.zarr\")/cell_ids shape=(222442,) dtype=int64>), ('da', <Array object_store://HTTPStore(\"https://data-taos.ifremer.fr/GRID4EARTH/no_chunk_healpix.zarr\")/da shape=(222442,) dtype=float32>)]\n", |
119 | 119 | "Attrs: {}\n", |
120 | | - "Chunk grid: ChunkGrid(dimensions=(FixedDimension(size=55611, extent=222442),), _is_regular=True)\n" |
| 120 | + "Write chunk sizes: ((55611, 55611, 55611, 55609),)\n" |
121 | 121 | ] |
122 | 122 | } |
123 | 123 | ], |
|
129 | 129 | "\n", |
130 | 130 | "print(\"Members:\", list(g.members()))\n", |
131 | 131 | "print(\"Attrs:\", dict(g.attrs))\n", |
132 | | - "print(\"Chunk grid:\", arr.chunk_grid)" |
| 132 | + "print(\"Write chunk sizes:\", arr.write_chunk_sizes)" |
133 | 133 | ] |
134 | 134 | }, |
135 | 135 | { |
|
148 | 148 | "id": "90bc91b9", |
149 | 149 | "metadata": { |
150 | 150 | "execution": { |
151 | | - "iopub.execute_input": "2026-03-30T01:03:46.211439Z", |
152 | | - "iopub.status.busy": "2026-03-30T01:03:46.211138Z", |
153 | | - "iopub.status.idle": "2026-03-30T01:03:47.632389Z", |
154 | | - "shell.execute_reply": "2026-03-30T01:03:47.631887Z", |
155 | | - "shell.execute_reply.started": "2026-03-30T01:03:46.211416Z" |
| 151 | + "iopub.execute_input": "2026-03-30T13:09:45.301060Z", |
| 152 | + "iopub.status.busy": "2026-03-30T13:09:45.299959Z", |
| 153 | + "iopub.status.idle": "2026-03-30T13:09:46.662995Z", |
| 154 | + "shell.execute_reply": "2026-03-30T13:09:46.662527Z", |
| 155 | + "shell.execute_reply.started": "2026-03-30T13:09:45.301022Z" |
156 | 156 | } |
157 | 157 | }, |
158 | 158 | "outputs": [], |
|
170 | 170 | "id": "0d7785b0-d72f-4ef8-8a57-91d61f07be96", |
171 | 171 | "metadata": { |
172 | 172 | "execution": { |
173 | | - "iopub.execute_input": "2026-03-30T01:03:47.633034Z", |
174 | | - "iopub.status.busy": "2026-03-30T01:03:47.632792Z", |
175 | | - "iopub.status.idle": "2026-03-30T01:03:47.635838Z", |
176 | | - "shell.execute_reply": "2026-03-30T01:03:47.635478Z", |
177 | | - "shell.execute_reply.started": "2026-03-30T01:03:47.633024Z" |
| 173 | + "iopub.execute_input": "2026-03-30T13:09:46.663527Z", |
| 174 | + "iopub.status.busy": "2026-03-30T13:09:46.663301Z", |
| 175 | + "iopub.status.idle": "2026-03-30T13:09:46.666266Z", |
| 176 | + "shell.execute_reply": "2026-03-30T13:09:46.665875Z", |
| 177 | + "shell.execute_reply.started": "2026-03-30T13:09:46.663516Z" |
178 | 178 | } |
179 | 179 | }, |
180 | 180 | "outputs": [ |
|
200 | 200 | "id": "72c80224-dcac-4724-8caf-5717b29a25d5", |
201 | 201 | "metadata": { |
202 | 202 | "execution": { |
203 | | - "iopub.execute_input": "2026-03-30T01:03:47.636213Z", |
204 | | - "iopub.status.busy": "2026-03-30T01:03:47.636138Z", |
205 | | - "iopub.status.idle": "2026-03-30T01:03:47.643387Z", |
206 | | - "shell.execute_reply": "2026-03-30T01:03:47.642743Z", |
207 | | - "shell.execute_reply.started": "2026-03-30T01:03:47.636205Z" |
| 203 | + "iopub.execute_input": "2026-03-30T13:09:46.666584Z", |
| 204 | + "iopub.status.busy": "2026-03-30T13:09:46.666509Z", |
| 205 | + "iopub.status.idle": "2026-03-30T13:09:46.673617Z", |
| 206 | + "shell.execute_reply": "2026-03-30T13:09:46.672827Z", |
| 207 | + "shell.execute_reply.started": "2026-03-30T13:09:46.666576Z" |
208 | 208 | } |
209 | 209 | }, |
210 | 210 | "outputs": [ |
|
238 | 238 | "id": "a79a281b-ca74-49c3-a467-60490a4ad63e", |
239 | 239 | "metadata": { |
240 | 240 | "execution": { |
241 | | - "iopub.execute_input": "2026-03-30T01:03:47.643801Z", |
242 | | - "iopub.status.busy": "2026-03-30T01:03:47.643715Z", |
243 | | - "iopub.status.idle": "2026-03-30T01:03:47.648805Z", |
244 | | - "shell.execute_reply": "2026-03-30T01:03:47.648326Z", |
245 | | - "shell.execute_reply.started": "2026-03-30T01:03:47.643792Z" |
| 241 | + "iopub.execute_input": "2026-03-30T13:09:46.674098Z", |
| 242 | + "iopub.status.busy": "2026-03-30T13:09:46.673995Z", |
| 243 | + "iopub.status.idle": "2026-03-30T13:09:46.690488Z", |
| 244 | + "shell.execute_reply": "2026-03-30T13:09:46.686144Z", |
| 245 | + "shell.execute_reply.started": "2026-03-30T13:09:46.674089Z" |
246 | 246 | } |
247 | 247 | }, |
248 | 248 | "outputs": [ |
|
278 | 278 | "id": "ribguojdr0s", |
279 | 279 | "metadata": { |
280 | 280 | "execution": { |
281 | | - "iopub.execute_input": "2026-03-30T01:03:47.649560Z", |
282 | | - "iopub.status.busy": "2026-03-30T01:03:47.649480Z", |
283 | | - "iopub.status.idle": "2026-03-30T01:03:47.943997Z", |
284 | | - "shell.execute_reply": "2026-03-30T01:03:47.943488Z", |
285 | | - "shell.execute_reply.started": "2026-03-30T01:03:47.649552Z" |
| 281 | + "iopub.execute_input": "2026-03-30T13:09:46.691041Z", |
| 282 | + "iopub.status.busy": "2026-03-30T13:09:46.690923Z", |
| 283 | + "iopub.status.idle": "2026-03-30T13:09:47.241836Z", |
| 284 | + "shell.execute_reply": "2026-03-30T13:09:47.241361Z", |
| 285 | + "shell.execute_reply.started": "2026-03-30T13:09:46.691030Z" |
286 | 286 | } |
287 | 287 | }, |
288 | 288 | "outputs": [ |
289 | 289 | { |
290 | 290 | "name": "stdout", |
291 | 291 | "output_type": "stream", |
292 | 292 | "text": [ |
293 | | - "Written to: /var/folders/70/hc_nynms54d8lp67z4rsfctc0000gp/T/tmpgjlmnfff/healpix_rectilinear.zarr\n" |
| 293 | + "Written to: /var/folders/70/hc_nynms54d8lp67z4rsfctc0000gp/T/tmp30rjewd0/healpix_rectilinear.zarr\n" |
294 | 294 | ] |
295 | 295 | } |
296 | 296 | ], |
|
331 | 331 | "id": "mpdn5hxp7lp", |
332 | 332 | "metadata": { |
333 | 333 | "execution": { |
334 | | - "iopub.execute_input": "2026-03-30T01:03:47.944360Z", |
335 | | - "iopub.status.busy": "2026-03-30T01:03:47.944287Z", |
336 | | - "iopub.status.idle": "2026-03-30T01:03:47.946825Z", |
337 | | - "shell.execute_reply": "2026-03-30T01:03:47.946372Z", |
338 | | - "shell.execute_reply.started": "2026-03-30T01:03:47.944352Z" |
| 334 | + "iopub.execute_input": "2026-03-30T13:09:47.242174Z", |
| 335 | + "iopub.status.busy": "2026-03-30T13:09:47.242097Z", |
| 336 | + "iopub.status.idle": "2026-03-30T13:09:47.244629Z", |
| 337 | + "shell.execute_reply": "2026-03-30T13:09:47.244126Z", |
| 338 | + "shell.execute_reply.started": "2026-03-30T13:09:47.242166Z" |
339 | 339 | } |
340 | 340 | }, |
341 | 341 | "outputs": [ |
|
367 | 367 | }, |
368 | 368 | { |
369 | 369 | "cell_type": "code", |
370 | | - "execution_count": 10, |
| 370 | + "execution_count": 13, |
371 | 371 | "id": "308gxly6r3j", |
372 | 372 | "metadata": { |
373 | 373 | "execution": { |
374 | | - "iopub.execute_input": "2026-03-30T01:03:47.947072Z", |
375 | | - "iopub.status.busy": "2026-03-30T01:03:47.946996Z", |
376 | | - "iopub.status.idle": "2026-03-30T01:03:47.967534Z", |
377 | | - "shell.execute_reply": "2026-03-30T01:03:47.967022Z", |
378 | | - "shell.execute_reply.started": "2026-03-30T01:03:47.947061Z" |
| 374 | + "iopub.execute_input": "2026-03-30T13:11:17.611493Z", |
| 375 | + "iopub.status.busy": "2026-03-30T13:11:17.610692Z", |
| 376 | + "iopub.status.idle": "2026-03-30T13:11:17.655199Z", |
| 377 | + "shell.execute_reply": "2026-03-30T13:11:17.654529Z", |
| 378 | + "shell.execute_reply.started": "2026-03-30T13:11:17.611441Z" |
379 | 379 | } |
380 | 380 | }, |
381 | 381 | "outputs": [ |
382 | 382 | { |
383 | 383 | "name": "stdout", |
384 | 384 | "output_type": "stream", |
385 | 385 | "text": [ |
386 | | - "Round-trip chunk sizes: Frozen({'cell_ids': (25, 645, 1510, 2363, 3203, 74, 769, 3963, 4096, 233, 1603, 2450, 4096, 4096, 3327, 4047, 4096, 4096, 1278, 2113, 4096, 3879, 4096, 3842, 2173, 983, 4046, 2187, 4095, 1369, 4096, 4096, 4096, 4096, 3515, 1395, 4096, 3622, 4096, 4096, 3875, 4096, 4096, 4096, 4096, 4096, 2034, 4096, 358, 3991, 4096, 4096, 4096, 4096, 2714, 1210, 4096, 4096, 4096, 4096, 92, 3826, 4096, 2629, 4096, 1438, 4096, 353, 4078, 3410, 2407, 226, 132, 2738, 1223, 23)})\n", |
387 | | - "Regular grid: False\n" |
| 386 | + "Round-trip chunk sizes: Frozen({'cell_ids': (25, 645, 1510, 2363, 3203, 74, 769, 3963, 4096, 233, 1603, 2450, 4096, 4096, 3327, 4047, 4096, 4096, 1278, 2113, 4096, 3879, 4096, 3842, 2173, 983, 4046, 2187, 4095, 1369, 4096, 4096, 4096, 4096, 3515, 1395, 4096, 3622, 4096, 4096, 3875, 4096, 4096, 4096, 4096, 4096, 2034, 4096, 358, 3991, 4096, 4096, 4096, 4096, 2714, 1210, 4096, 4096, 4096, 4096, 92, 3826, 4096, 2629, 4096, 1438, 4096, 353, 4078, 3410, 2407, 226, 132, 2738, 1223, 23)})\n" |
388 | 387 | ] |
389 | 388 | } |
390 | 389 | ], |
391 | 390 | "source": [ |
392 | 391 | "roundtrip = xr.open_zarr(output_path, zarr_format=3, consolidated=False)\n", |
393 | 392 | "\n", |
394 | | - "print(\"Round-trip chunk sizes:\", roundtrip.chunks)\n", |
395 | | - "print(\"Regular grid:\", roundtrip[\"da\"].variable.encoding.get(\"chunks\") == tuple(chunk_sizes.tolist()))" |
| 393 | + "print(\"Round-trip chunk sizes:\", roundtrip.chunks)" |
396 | 394 | ] |
397 | 395 | }, |
398 | 396 | { |
399 | 397 | "cell_type": "code", |
400 | 398 | "execution_count": null, |
401 | | - "id": "d3c32f1c-2c4f-403f-a4e8-98c6582eef96", |
| 399 | + "id": "e8d42341-c242-44f5-ad6a-491370e3ffab", |
402 | 400 | "metadata": {}, |
403 | 401 | "outputs": [], |
404 | 402 | "source": [] |
|
0 commit comments