Skip to content

Info

clean_aqg_metadata(info)

Process the metadata from an AQG .info file

Parameters:

Name Type Description Default
info dict

Unaltered parameters from an AQG .info file.

required

Returns:

Type Description
dict

Cleaned metadata

guess_point_and_orientation(site_name)

Guess point code and setup orientation from the site name

Examples:

>>> guess_point_and_orientation("WET_FA_180")
{'point': 'WET_FA', 'orientation': '180.0°'}
>>> guess_point_and_orientation("WET_FA")
{'point': 'WET_FA'}
>>> guess_point_and_orientation("ALT_4334_AA_180")
{'point': 'ALT_4334_AA', 'orientation': '180.0°'}

Parameters:

Name Type Description Default
site_name str

Identifier of the measurement location

required

Returns:

Type Description
dict

Dictionary of point and orientation values.

parse_aqg_info_text(text)

Parse text of an AQG .info file without cleaning up the content

read_aqg_info(path)

Read an AQG .info file and parse the relevant metadata

Parameters:

Name Type Description Default
path str | Path | Path

Path to .info file.

required

Returns:

Type Description
dict

Metadata