disdrodb.api package
Submodules
disdrodb.api.checks module
- disdrodb.api.checks.check_disdrodb_dir(disdrodb_dir: str)[source]
Raise an error if the path does not end with “DISDRODB”.
disdrodb.api.info module
- disdrodb.api.info.get_info_from_filepath(fpath)[source]
Retrieve file information dictionary from filepath.
- disdrodb.api.info.get_key_from_filepath(fpath, key)[source]
Extract specific key information from a list of filepaths.
disdrodb.api.io module
- disdrodb.api.io.available_campaigns(disdrodb_dir, product_level, data_sources=None, return_tuple=True)[source]
Return campaigns for which stations data are available.
- disdrodb.api.io.available_data_sources(disdrodb_dir, product_level)[source]
Return data sources for which stations data are available.
- disdrodb.api.io.available_stations(disdrodb_dir, product_level, data_sources=None, campaign_names=None, return_tuple=True)[source]
Return stations for which data are available.
disdrodb.api.metadata module
- disdrodb.api.metadata.get_list_metadata(disdrodb_dir, data_sources=None, campaign_names=None, station_names=None, with_stations_data=True)[source]
Get the list of metadata filepaths in the DISDRODB raw archive.
- Parameters
disdrodb_dir (str) – Base directory of DISDRODB Format: <…>/DISDRODB
data_sources (str or list of str) – Name of data source(s) of interest. The name(s) must be UPPER CASE. The default is None
campaign_names (str or list of str) – Name of the campaign(s) of interest. The name(s) must be UPPER CASE. The default is None
station_names (str or list of str) – Station names of interest. The default is None
with_stations_data (bool) – If True, only return metadata filepaths that have corresponding data in the local DISDRODB raw archive. The default is True
- Returns
metadata_fpaths – List of metadata YAML file paths
- Return type
list