aerosoltools.loaders.Load_DiSCmini_file

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

Load and parse data from a DiSCmini .txt file (after conversion), returning an AerosolAlt object.

This function extracts the datetime, total particle number concentration, average size, and LDSA from the DiSCmini export file. It also stores serial number and units as metadata, and optionally attaches extra columns as .extra_data.

Parameters

filestr

Path to the .txt file exported from DiSCmini software (after conversion).

extra_databool, optional

If True, attaches unused data columns as ._extra_data in the AerosolAlt class.

Returns

DMAerosolAlt

Object containing parsed time series data and instrument metadata.

Raises

Exception

If the file has not been converted correctly, or the datetime format is unrecognized.

Notes

  • The returned data contains: ‘Datetime’, ‘Total_conc’ (cm⁻³), ‘Size’ (nm), and ‘LDSA’ (nm²/cm³).

  • Automatically detects encoding and delimiter using Com.detect_delimiter().

  • Two known datetime formats are supported: %d-%b-%Y %H:%M:%S and %d-%m-%Y %H:%M:%S.

Parameters:
  • file (str)

  • extra_data (bool)