aerosoltools.loaders.Load_Partector_file
- aerosoltools.loaders.Load_Partector_file(file, extra_data=False)
Load Partector LDSA data from a .txt file.
This function reads the flow, LDSA, and TEM (filter trigger) columns, reconstructs the datetime index from the file’s metadata, and returns an AerosolAlt object containing the structured data.
Parameters
- filestr
Path to the Partector .txt file.
- extra_databool, optional
If True, attaches all additional columns (except LDSA, TEM, Flow) as extra_data in the returned class. Default is False.
Returns
- ParAerosolAlt
A class instance containing datetime-indexed LDSA, TEM flag, and flow. Metadata includes sample volume estimates and instrument info.
Notes
LDSA is returned in units of nm²/cm³.
Flow is averaged over TEM==1 samples and reported in l/min.
Sample volume is calculated only for the period where TEM==1.
Requires Com.detect_delimiter() for automatic delimiter/encoding detection.
- Parameters:
file (str)
extra_data (bool)