aerosoltools.loaders.Load_CPC_file — aerosoltools 0.1.0 documentation

# aerosoltools.loaders.Load_CPC_file

aerosoltools.loaders.Load_CPC_file(file, extra_data=False)

  Load CPC data file and determine the appropriate parsing routine.

  This function detects whether the input file is exported directly from a CPC or whether it has been through the AIM software, based on its column structure, and routes it accordingly. The loaded data is then formatted and returned as an Aerosol1D class instance.

  ## Parameters

  filestr or Path

    Path to the CPC data file (.txt format).

  extra_databool, optional

    If True, includes all non-core metadata in the .extra_data attribute (only for full format).

  ## Returns

  CPCAerosol1D

    Object containing datetime and total concentration data parsed from the CPC file.

  ## Raises

  Exception

    If the file format cannot be identified.

  Parameters:

    - file (str)

    - extra_data (bool)

  Return type:

    Aerosol1D