...
Now you can conduct search based on the above unique values for specific column/keyword. For example, you could specify the following query for BARRA2 dataset and apply .search(**query) method to conduct the search.
Code Block |
---|
data_catalog = intake.open_esm_datastore("/g/data/dk92/catalog/v2/esm/barra2-ob53/catalog.json") |
...
query = dict( |
...
variable_id=["ts"], |
...
start_time=[201404,201405], |
...
freq=["1hr"], |
...
) |
...
catalog_subset = data_catalog.search(**query) |
...
catalog_subset |
It will produce a catalog subset.
...
You can load the dataset of this catalog subset directly as below which returns a dictionary.
Code Block |
---|
dsets = catalog_subset.to_dataset_dict() |
You can check all keys in 'dsets' as below.
Code Block |
---|
list(dsets) |
...
>>> |
...
['f.output.reanalysis.AUS-11.BOM.ERA5.historical.hres.BARRA-R2.v1.1hr.ts.v20231001'] |
For a specific key, dsets contains a Xarray dataset:
...