ES-DOC / pyessv

Python Earth Science Standard Vocabularies
Other
8 stars 7 forks source link

Validate Dataset-ID or DRS path #3

Closed asladeofgreen closed 2 years ago

asladeofgreen commented 7 years ago

Additional validation method on a full dataset ID or path against the DRS could be useful. Example:

cmip6 = load_scope('wcrp', 'cmip6')
dset = cmip6.parse("cmip6.output1.MOHC.HadGEM2-A.amip4xCO2.mon.atmos.Amon.r1i1p1.v20110523")
dset.is_valid()

path = cmip6.parse("/my/archive/cmip6/..../tas/v20110523")
path.is_valid()