ccdtools.catalog.DataCatalog.available_subdatasets

DataCatalog.available_subdatasets(dataset, version=None)

Show available subdatasets for a given dataset and version.

Parameters:
  • dataset (str) – Name of the dataset.

  • version (str, optional) – Version of the dataset. If not provided, the latest version is used. Default is None.

Returns:

List of available subdataset names, or None if no subdatasets are defined for the dataset.

Return type:

list of str

Raises:

ValueError – If no versions are found for the dataset.

Warning

UserWarning

If no subdatasets are defined for the specified dataset and version.