Features
- class pyrcs.other_assets.Features(data_dir=None, update=False, verbose=True)[source]
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() >>> feats.NAME 'Infrastructure features'
Attributes
Key of the dict-type data
Key of the dict-type data of 'buzzer codes'
Key of the dict-type data of 'HABD' and 'WILD'
Key of the data of the last updated date
Key of the dict-type data of 'telegraph codes'
Key of the dict-type data of 'water troughs'
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.