Skip to content

aermap

aermap

PyAERMOD AERMAP Input Generator

Generates AERMAP input files for terrain preprocessing. AERMAP is the EPA's terrain preprocessor for AERMOD.

AERMAP reads Digital Elevation Model (DEM) data and calculates: - Receptor elevations - Hill heights (for terrain-following calculations) - Source elevations

AERMAPDomain dataclass

Domain definition for AERMAP processing

AERMAPReceptor dataclass

Receptor definition for AERMAP

AERMAPSource dataclass

Source definition for AERMAP

AERMAPProject dataclass

AERMAP project configuration

Generates terrain elevations for receptors and sources.

from_aermod_project classmethod

from_aermod_project(aermod_project, dem_files: List[str], utm_zone: int = 16, datum: str = 'NAD83', buffer: float = 1000.0) -> AERMAPProject

Create an AERMAPProject from an AERMODProject.

Extracts source and receptor locations and builds corresponding AERMAP input for terrain elevation processing.

Parameters:

Name Type Description Default
aermod_project AERMODProject
required
dem_files list of str

DEM file paths.

required
utm_zone int
16
datum str
'NAD83'
buffer float

Buffer in meters around domain extents.

1000.0

Returns:

Type Description
AERMAPProject

add_receptor

add_receptor(receptor: AERMAPReceptor)

Add a discrete receptor

add_source

add_source(source: AERMAPSource)

Add a source

to_aermap_input

to_aermap_input() -> str

Generate AERMAP input file

write

write(filename: str)

Write AERMAP input file

create_grid_receptors_for_aermap

create_grid_receptors_for_aermap(x_min: float, x_max: float, y_min: float, y_max: float, spacing: float) -> Tuple[float, float, int, int]

Helper function to calculate grid parameters for AERMAP

Args: x_min, x_max: X coordinate range y_min, y_max: Y coordinate range spacing: Grid spacing in meters

Returns: Tuple of (x_init, y_init, x_num, y_num)