Skip to content

gravitools.aqg.utils

Common constants and functions for AQG data analysis

AQG_SENSITIVITY = 500 module-attribute

Nominal AQG sensitivity, nm/s²*sqrt(Hz)

rename_columns(names)

Rename column names to shorten and remove symbols

Parameters:

  • names (list[str]) –

    Original column names.

Returns:

  • dict

    Mapping of original to new column names.

aqg_dtypes(names)

Change data types of columns to save memory space

Parameters:

  • names (list[str]) –

    Column names.

Returns:

  • dict

    Mapping of column name to new data type.

clean_aqg_dataframe(df)

Clean dataframe of AQG rawdata from a CSV file

Parameters:

  • df (DataFrame) –

    Input dataframe, modified in place.

read_aqg_csvs(paths)

Read multiple .csv files of AQG raw data.

Parameters:

  • paths (list[str | Path | Path]) –

    Paths of .csv files to read.

Returns:

  • Dataframe

    Data read from .csv files.

merge_aqg_raw_dataframes(df_raw, df_preprocessed)

Merge dataframes of AQG rawdata and preprocessed data

The AQG rawdata folder contains CSV files of the full raw data and CSV files of preprocessed data in intervals with additional temperature columns. This function merges the dataframes into one for easier handling.

Argument df_raw is modified in place.