skmap.catalog.DataCatalog#

class DataCatalog(data, data_size)[source]#

Bases: object

Methods

add_otf_features

copy

create_catalog

Create a metadata catalog from csv file

expand_whales_dependencies

find_group_and_feature_by_index

get_feature_names

get_groups

get_otf_idx

get_paths

get_unrolled_catalog

get_whales

query

save_json

classmethod create_catalog(catalog_def, years, base_path, verbose=True, replace_group_feat_name=False)[source]#

Create a metadata catalog from csv file

Parameters:
  • catalog_def (Union[DataFrame, str]) – Dataframe or csv with definitions

  • years (List[int]) – list of years in analysis

  • base_path (Union[List[str], str]) – Base path

  • verbose (bool) – whether to enable verbose output, defaults to True

  • replace_group_feat_name (bool) – _description_, defaults to False

Returns:

A parsed catalog from the input file

Return type:

DataCatalog