gravitools.aqg.info
parse_aqg_info_text(text)
Parse text of an AQG .info file without cleaning up the content
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:
-
site_name(str) –Identifier of the measurement location
Returns:
-
dict–Dictionary of point and orientation values.
clean_aqg_metadata(info)
Process the metadata from an AQG .info file
Parameters:
-
info(dict) –Unaltered parameters from an AQG .info file.
Returns:
-
dict–Cleaned metadata
read_aqg_info(path)
Read an AQG .info file and parse the relevant metadata
Parameters:
-
path(str | Path | Path) –Path to .info file.
Returns:
-
dict–Metadata