Skip to content

aermod_outputs

aermod_outputs

PyAERMOD auxiliary output-file parsers.

AERMOD emits several text-format auxiliary files in addition to the main .OUT log and the POSTFILE binary (handled by postfile.py):

  • PLOTFILE one value per receptor for a given averaging period
  • MAXIFILE ranked top-N values at every receptor
  • RANKFILE overall top-N values across receptors, with dates
  • SEASONHR seasonal-hourly-average grid (4 seasons * 24 hours)
  • TOXXFILE top-N concentrations for toxics post-processing
  • deposition DDEP / WDEP / TOTDEP (same layout as PLOTFILE)

All share a common structure: comment header lines starting with '*' followed by whitespace-delimited numeric rows. The readers here return either a pandas DataFrame (preferred) or a list of dicts.

AERMODFileHeader dataclass

Parsed comment-header info common to all AERMOD text outputs.

AERMODAuxResult dataclass

Unified result for any AERMOD auxiliary output file.

parse_aermod_header

parse_aermod_header(lines: List[str]) -> AERMODFileHeader

Parse the comment-header block of any AERMOD auxiliary file.

read_aermod_aux_file

read_aermod_aux_file(filepath: Union[str, Path]) -> AERMODAuxResult

Read any AERMOD text auxiliary output file.

Auto-detects the file type (PLOTFILE, MAXIFILE, RANKFILE, SEASONHR, TOXXFILE, DDEP, WDEP, TOTDEP) from the header comments and infers columns when the header doesn't label them.

read_plotfile

read_plotfile(filepath: Union[str, Path]) -> AERMODAuxResult

Read a PLOTFILE (one concentration value per receptor).

read_maxifile

read_maxifile(filepath: Union[str, Path]) -> AERMODAuxResult

Read a MAXIFILE (top-N values at each receptor).

read_rankfile

read_rankfile(filepath: Union[str, Path]) -> AERMODAuxResult

Read a RANKFILE (overall top-N values across receptors).

read_seasonhr

read_seasonhr(filepath: Union[str, Path]) -> AERMODAuxResult

Read a SEASONHR file (seasonal-hourly averages).

read_toxxfile

read_toxxfile(filepath: Union[str, Path]) -> AERMODAuxResult

Read a TOXXFILE (toxics post-processing top-N).

read_deposition

read_deposition(filepath: Union[str, Path]) -> AERMODAuxResult

Read a deposition output file (DDEP, WDEP, or TOTDEP).