Features

class pyrcs.other_assets.feature.Features(data_dir=None, update=False, verbose=True)

A class for collecting codes of several infrastructure features.

Parameters
  • data_dir (str or None) – name of data directory, defaults to None

  • update (bool) – whether to do an update check (for the package data), defaults to False

  • verbose (bool or int) – whether to print relevant information in console, defaults to True

Variables
  • catalogue (dict) – catalogue of the data

  • last_updated_date (str) – last updated date

  • data_dir (str) – path to the data directory

  • current_data_dir (str) – path to the current data directory

Examples:

>>> from pyrcs.other_assets import Features  # from pyrcs import Features

>>> feats = Features()

>>> print(feats.NAME)
Infrastructure features

Attributes

KEY

Key of the dict-type data

KEY_TO_BUZZER

Key of the dict-type data of 'buzzer codes'

KEY_TO_HABD_WILD

Key of the dict-type data of 'HABD' and 'WILD'

KEY_TO_LAST_UPDATED_DATE

Key of the data of the last updated date

KEY_TO_TELEGRAPH

Key of the dict-type data of 'telegraph codes'

KEY_TO_TROUGH

Key of the dict-type data of 'water troughs'

NAME

Name of the data

Methods

collect_buzzer_codes([...])

Collect data of buzzer codes from source web page.

collect_habds_and_wilds([...])

Collect codes of HABDs and WILDs from source web page.

collect_telegraph_codes([...])

Collect data of telegraph code words from source web page.

collect_water_troughs([...])

Collect codes of water troughs locations from source web page.

fetch_buzzer_codes([update, dump_dir, verbose])

Fetch data of buzzer codes.

fetch_codes([update, dump_dir, verbose])

Fetch codes of infrastructure features.

fetch_habds_and_wilds([update, dump_dir, ...])

Fetch codes of HABDs and WILDs.

fetch_telegraph_codes([update, dump_dir, ...])

Fetch data of telegraph code words.

fetch_water_troughs([update, dump_dir, verbose])

Fetch codes of water troughs locations.