Create an Intake Catalog
Generate an Intake catalog for an existing Zarr or Parquet product, then confirm that Intake can resolve a source.
Prerequisites
- A completed Zarr or Parquet ingestion.
- The Firecube environment activated.
- The plugin name and full product URI.
- A product URI ending in
.zarror.parquet.
Install The Catalog Reader
For a Zarr product, install the Intake and xarray readers into the Firecube environment:
For a Parquet product, install the Parquet reader as well:
Generate A Local Catalog
Replace PLUGIN_NAME if the product came from another plugin:
mkdir -p catalogs
firecube catalog intake PLUGIN_NAME \
--product "file://${PWD}/quickstart-output/weather.zarr" \
--collection-id quickstart_weather \
--output "file://${PWD}/catalogs/quickstart_weather.yaml" \
--no-storage-options
Expected result:
For an S3 product, pass its full s3:// URI and omit
--no-storage-options so the catalog contains storage-option placeholders.
Verify The Catalog
Open the catalog and resolve its first source:
python - <<'PY'
import intake
catalog = intake.open_catalog("catalogs/quickstart_weather.yaml")
source_names = list(catalog)
assert source_names, "catalog contains no sources"
source = catalog[source_names[0]]
print(source_names[0])
PY
The command should print at least one source name. Each discovered Zarr or Parquet group becomes a source in the generated catalog.
Next Steps
- Configure S3 Access: configure credentials for S3-backed products.
- Intake documentation: load and use the catalog sources.