|
173 | 173 | "urls = ['s3://hrrrzarr/sfc/20160824/20160824_00z_anl.zarr/surface/TMP/surface',\n",
|
174 | 174 | " 's3://hrrrzarr/sfc/20160824/20160824_00z_anl.zarr/surface/TMP']\n",
|
175 | 175 | "\n",
|
176 |
| - "chunks = {'projection_x_coordinate': 1799,\n", |
177 |
| - " 'projection_y_coordinate': 1059}\n", |
| 176 | + "source = intake.open_zarr(urls, chunks=None,\n", |
| 177 | + " storage_options={\"anon\": True},\n", |
| 178 | + " consolidated=True)\n", |
178 | 179 | "\n",
|
179 |
| - "so = {\"anon\": True}\n", |
180 |
| - "\n", |
181 |
| - "source = intake.open_zarr(urls, chunks=chunks, storage_options=so)\n", |
182 | 180 | "source.name = 'hrrrzarr'\n",
|
183 | 181 | "source.description = \"Mesowest's HRRR data. See readme source for more information.\"\n",
|
184 | 182 | "ds = source.read()\n",
|
|
189 | 187 | "cell_type": "markdown",
|
190 | 188 | "metadata": {},
|
191 | 189 | "source": [
|
192 |
| - "Above we used the `storage_options` argument to tell Intake how to access data on AWS. In this case we accessed the data as an anonymous user.\n", |
| 190 | + "Above we used the `storage_options` argument to tell Intake how to access data on AWS. In this case we accessed the data as an anonymous user. The `consolidated=True` argument is given to tell [Xarray](https://foundations.projectpythia.org/core/xarray.html) how to load the metadata for this source. Zarr data may contain consolidated metadata. If it does, using it can increase performance significantly.\n", |
193 | 191 | "\n",
|
194 | 192 | "When you use Intake's `open_{driver}` methods, it creates a catalog entry for the source. You can view the yaml using the source's `yaml` method."
|
195 | 193 | ]
|
|
433 | 431 | "source": [
|
434 | 432 | "## Testing the Catalog\n",
|
435 | 433 | "\n",
|
436 |
| - "Now that your catalog is on Github let's try using it. In the cell below replace the url with the url pointing to the raw catalog file on Github" |
| 434 | + "Now that your catalog is on Github let's try using it. In the cell below replace the url with the url pointing to the raw catalog file on your Github account" |
437 | 435 | ]
|
438 | 436 | },
|
439 | 437 | {
|
|
0 commit comments