Skip to content

regulatory

regulatory

PyAERMOD regulatory-profile presets.

Codifies the "AERMOD as-used by regulators" configurations so users don't have to remember the set of ControlPathway flags that make a run compliant with a given agency's guidance.

Each RegulatoryProfile is a bundle of settings and lints. Applying a profile to a project:

from pyaermod import EPA_APPENDIX_W_2024
changes = EPA_APPENDIX_W_2024.apply(project)   # what it changed
findings = EPA_APPENDIX_W_2024.check(project)  # what still conflicts
notes = EPA_APPENDIX_W_2024.advisories(project)

apply never raises; check lists what remains.

Sources: - 40 CFR 51 Appendix W ("Guideline on Air Quality Models"): the 2017 revision (82 FR 5182, effective 2017-05-22) and the 2024 revision (89 FR 95034, effective 2025-03-21). There was no 2023 revision. - The AERMOD User's Guide (EPA-454/B-26-001, v26135), sections 3.2.2, 3.2.3 and 3.2.5, and the MODELOPT checks in AERMOD's coset.f (v23132, v24142, v26135).

What the profiles cannot see: ADJ_U* is chosen in AERMET and read by AERMOD from the surface file's header. It has been a regulatory option since the 2017 rule, except with site-specific turbulence data, where it needs approval as an alternative model (Appendix W, Addendum A, A.1(b)(2)(ii); AERMOD stops with E401 under DFAULT).

NOTE: This module encodes defaults and lints — final regulatory acceptance is always the agency's call. Consider the output advisory.

RegulatoryProfile dataclass

A named bundle of AERMOD regulatory settings.

Attributes:

Name Type Description
name str

Short identifier (e.g. "EPA-AppendixW-2024").

description str

One-paragraph summary.

regulatory_default bool

Whether to require DFAULT in MODELOPT.

terrain_type str

Required TerrainType value ("ELEVATED" / "FLAT"). Profiles usually mandate "ELEVATED" since it subsumes flat cases (AERMOD also accepts the short form "ELEV").

allowed_low_wind tuple of str

low_wind_option values the profile accepts. Empty in every profile here: CO LOW_WIND is an ALPHA option, which AERMOD refuses beside DFAULT (E133, E204), and no revision of Appendix W names a low-wind option. LOWWIND1, 2 and 3 were BETA options removed in AERMOD v18081; the 2017 rule declined to adopt LOWWIND3.

allow_chemistry_methods tuple of str

Names of ChemistryMethod enum values the profile accepts for NO2 (Appendix W 4.2.3.4): ARM2 is Tier 2; OLM, PVMRM and, from the 2024 revision, GRSM are Tier 3. No chemistry is Tier 1.

tier3_chemistry_methods tuple of str

Methods for which :meth:advisories recalls the Tier 3 consultation of Appendix W 4.2.3.4(e).

forbid_nondefault_flags tuple of str

Non-default options the profile forbids. Each entry is a boolean ControlPathway field (alpha, beta, psd_credit) or a MODELOPT token looked for in extra_model_options (NOSTD, FASTAREA, ...; FLAT also matches a FLAT/FLATSRCS terrain_type). The older names flat_terrain, no_stack_tip_downwash, use_lowwind1/2/3 and beta_options are read as FLAT, NOSTD, LOWWIND1/2/3 and beta.

notes list of str

Free-form explanatory text.

apply

apply(project: Any) -> List[str]

Apply the profile's settings to a project in-place.

Returns the list of changes made, each as a human-readable string. Does NOT raise — use check() afterwards if you want strictness.

check

check(project: Any) -> List[str]

Return a list of regulatory lint warnings for the project.

Unlike apply, this does not mutate the project. Use to audit a project before submission without changing it.

advisories

advisories(project: Any) -> List[str]

Notes on what the project's options ask of the applicant.

These are not conflicts and are not in :meth:check. A Tier 3 NO2 method (tier3_chemistry_methods) that the profile accepts gives one note: Appendix W 4.2.3.4(e) says its use "shall occur in consultation with the EPA Regional Office in addition to the appropriate reviewing authority".

get_profile

get_profile(name: str) -> RegulatoryProfile

Look up a profile by name. Raises KeyError if not known.