Skip to content

Commit c00c99c

Browse files
authored
removed dependency on separate Github repository containing Intake catalog (#14)
1 parent c382410 commit c00c99c

File tree

3 files changed

+1823
-30
lines changed

3 files changed

+1823
-30
lines changed

notebooks/catalog.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
metadata:
2+
description: Catalog containing Mesowest's HRRR data. See readme source for more
3+
information.
4+
version: 1
5+
sources:
6+
data_dictionary:
7+
args:
8+
csv_kwargs:
9+
keep_default_na: false
10+
urlpath: '{{ CATALOG_DIR }}/inventory.csv'
11+
description: Describes the data in the hrrrzarr source
12+
driver: intake.source.csv.CSVSource
13+
metadata: {}
14+
hrrrzarr:
15+
args:
16+
chunks:
17+
projection_x_coordinate: 1799
18+
projection_y_coordinate: 1059
19+
storage_options:
20+
anon: true
21+
urlpath:
22+
- s3://hrrrzarr/sfc/{{date.strftime('%Y%m%d/%Y%m%d_%Hz_anl.zarr')}}/{{level}}/{{param}}
23+
- s3://hrrrzarr/sfc/{{date.strftime('%Y%m%d/%Y%m%d_%Hz_anl.zarr')}}/{{level}}/{{param}}/{{level}}
24+
description: Mesowest's HRRR data. See readme source for more information.
25+
driver: intake_xarray.xzarr.ZarrSource
26+
metadata:
27+
coords: !!python/tuple
28+
- projection_x_coordinate
29+
- projection_y_coordinate
30+
dims:
31+
projection_x_coordinate: 1799
32+
projection_y_coordinate: 1059
33+
parameters:
34+
date:
35+
default: '2016-08-24T00:00:00'
36+
description: Date and hour of data.
37+
min: '2016-08-24T00:00:00'
38+
type: datetime
39+
level:
40+
default: surface
41+
description: Parameter specifying level in the atmosphere. Corresponds to
42+
'Vertical Level' column in data_dictionary
43+
type: str
44+
param:
45+
default: TMP
46+
description: Specifies what parameter your dataset will contain. Corresponds
47+
to 'Parameter Short Name' in data_dictionary
48+
type: str
49+
readme:
50+
args:
51+
md_kwargs:
52+
post: '
53+
54+
<br>
55+
56+
End of README
57+
58+
</details>'
59+
pre: '<details markdown=''1''>
60+
61+
<summary>README</summary>
62+
63+
'
64+
urlpath: '{{ CATALOG_DIR }}/README.md'
65+
description: Learn more about how to use this catalog
66+
driver: intake_markdown.intake_markdown.MarkdownSource
67+
metadata: {}

notebooks/creating_catalogs.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@
433433
"source": [
434434
"## Testing the Catalog\n",
435435
"\n",
436-
"Now that your catalog is on Github let's try using it. In the cell below replace `jnmorley` with your own github username."
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"
437437
]
438438
},
439439
{
@@ -442,7 +442,7 @@
442442
"metadata": {},
443443
"outputs": [],
444444
"source": [
445-
"cat = intake.open_catalog('https://raw.githubusercontent.com/jnmorley/intake-demo/main/catalog.yml')\n",
445+
"cat = intake.open_catalog('https://raw.githubusercontent.com/ProjectPythiaCookbooks/intake-cookbook/main/notebooks/catalog.yml')\n",
446446
"list(cat)"
447447
]
448448
},

0 commit comments

Comments
 (0)