Open jbusecke opened 6 months ago
A simple way to check for requested iids:
EDIT: This accounts for both filepath/prefix conventions of old and new data!
def zstore_to_iid(zstore: str):
return '.'.join(zstore.split('/')[3:-1])
iids_requested = [
'CMIP6.CMIP.CSIRO-ARCCSS.ACCESS-CM2.historical.r4i1p1f1.3hr.pr.gn.v20210607',
]
import intake
# uncomment/comment lines to swap catalogs
url = "https://storage.googleapis.com/cmip6/cmip6-pgf-ingestion-test/catalog/catalog.json"
col = intake.open_esm_datastore(url)
iids_all= [zstore_to_iid(z) for z in col.df['zstore'].tolist()]
iids_uploaded = [iid for iid in iids_all if iid in iids_requested]
iids_uploaded
For now I have added instructions on how to check manually, so that users can keep track of requests.
Users commonly want to check if a particular iid
x.y.z
is in the catalog.I currently end up spinning up a python kernel and check it manually, but I wonder if we could have some easy way to just have a website with a form that accepts a single iid or a list of iids
And returns something like this: