AERMOD One User's Manual

12.8 Import or export sources and receptors through Excel

Command: Import > Excel sources and receptors...
Window: Excel sources and receptors (small fixed-size dialog with a standard title bar). It contains a Type list, a hint line (One workbook holds one type. Fill latitude and longitude, or easting and northing. A name that already exists for this type is updated.) and four buttons: Blank template, Import, Export and Close.

This command requires an open project. It exchanges one source, building, boundary or receptor type per workbook. It is distinct from the KML importer, whose Excel file supplies optional source attributes, and from meteorological Excel-to-SAMSON conversion (Chapter 7, Section 7.6).

flowchart TD
    A["Select Type"] --> B{"What do you need?"}
    B -- "Blank template" --> C["Save Excel template: choose .xlsx file"]
    C --> D["Template saved."]
    B -- Import --> E["Import {Type}: choose .xlsx file"]
    E --> F["Workbook is read and every row is checked"]
    F --> G{"Any valid rows?"}
    G -- No --> H["Summary of Add / Update / Skipped; nothing stored"]
    G -- Yes --> I["Summary and question: Import the valid rows?"]
    I -- No --> J["Nothing stored"]
    I -- Yes --> K["Rows are stored; {n} saved."]
    K --> L{"RLINEXT row stored?"}
    L -- Yes --> M["RLINEXT question: switch to non-regulatory mode?"]
    B -- Export --> N["Export {Type}: choose .xlsx file"]
    N --> O["{Type} exported."]

Available types

The Type list shows only the types that the current licence (and, for buoyant line and RLINEXT sources, the source-tree visibility rules) allows. Discrete receptor is always offered. The complete list is:

Source typesOther types
Point source; Area source; Volume source; Circular area source; Polygon area source; Open pit source; Road source; Buoyant line source; RLINE source; RLINEXT sourceBuilding; Plant boundary; Property boundary; Discrete receptor

Road source and RLINE source are both stored as the road type, so their workbooks have the same columns and an export of either lists all road-type records. RLINEXT source is a separate type; importing it can trigger the application's non-regulatory project rules.

Create a blank workbook

  1. Select the appropriate Type and click Blank template.
  2. In Save Excel template, select the destination .xlsx filename. The suggested name is {Type token} template.xlsx (for example Point template.xlsx).
  3. Confirm Template saved. (title Excel template). Keep the generated columns and type identifier unchanged when preparing import data.

The workbook layout is fixed:

LocationContent
First worksheet, cell A1Type
First worksheet, cell B1The exact type token from the template (see the table below). The import checks this cell against the selected Type.
Row 2A merged instruction line: for point-like types, one source per row; for multi-vertex types, one source per name with the name repeated on each vertex row. States that latitude/longitude or easting/northing must be filled and that the project zone is used when Zone and Hemisphere are blank.
Row 3Column headers (frozen when scrolling).
Row 4 onwardsData rows. Blank rows are ignored.

Only the first worksheet is read. The worksheet name carries no meaning. The column headers in row 3 are matched case-insensitively.

Columns for each type

Every workbook starts with Name, then (for multi-vertex types only) Vertex, then the coordinate columns Latitude, Longitude, Easting, Northing, Zone and Hemisphere, then the type-specific columns below, and finally one column per project pollutant (named with the pollutant display name, for example PM2.5) for every type except Building and the boundaries. In the tables, R marks a required value and O an optional one (with its default).

Type (token)Coordinates meanType-specific columns and rules
Point source (Point)Stack locationRelease height (m) R, above 0; Stack temperature (K) R, above 0; Exit velocity (m/s) R, not negative; Stack diameter (m) R, above 0; Base elevation (m) O, 0.
Area source (Area)Reference corner of the rectangleLength (m) R and Width (m) R, both above 0; Angle (deg) O, 0; Release height (m) R; Initial sigma-z (m) O, 0; Base elevation (m) O, 0.
Volume source (Volume)Centre of the sourceSide length (m) R, above 0; Initial sigma-y (m) O; Initial sigma-z (m) O; Release height (m) R, not negative; Base elevation (m) O, 0. Blank or non-positive sigma values are replaced by calculated defaults.
Circular area source (Circular)Centre of the circleRadius (m) R, above 0; Number of vertices O, 20 (fewer than 3 gives 20); Initial sigma-z (m) R; Release height (m) R; Base elevation (m) O, 0.
Polygon area source (Polygon)One row per vertex, at least 3Release height (m) R; Initial sigma-z (m) O, 0; Base elevation (m) O, 0.
Open pit source (OpenPit)Reference corner of the rectangleLength (m) R and Width (m) R, both above 0; Angle (deg) O, 0; Release height (m) R; Pit volume (m3) R, above 0; Base elevation (m) O, 0.
Road source (Road) and RLINE source (RLine)One row per vertex, at least 2Road width (m) R, at least 1; Release height (m) R; Initial sigma-z (m) O, 0; Base elevation (m) O, 0.
Buoyant line source (BuoyLine)One row per vertex, at least 2Release height (m) R; Average building height (m), Building width (m), Line source width (m), Building separation (m) and Average buoyancy (m4/s3) all R and above 0; Base elevation (m) O, 0.
RLINEXT source (RLineExt)One row per vertex, at least 2Road width (m) R, at least 1; Distance from centerline (m) R; Start height (m) R; End height (m) R; Initial sigma-z (m) O, 0.
Building (Building)One row per vertex, at least 3Building height (m) R, above 0. No pollutant columns.
Plant boundary (PlantBoundary) and Property boundary (PropertyBoundary)One row per vertex, at least 3Boundary height (m) O, 0. No pollutant columns.
Discrete receptor (DiscreteReceptor)Receptor locationTerrain elevation (m) O, 0; Flagpole height (m) O, 0; Category O.

For multi-vertex types, repeat the Name on each vertex row (a blank name continues the previous group). Vertices are taken in ascending Vertex number; if Vertex is blank the row order is used. The type-specific columns and pollutant values are read from the first row of each group. Use the generated workbook rather than guessing a type token, particularly for RLINEXT.

Import a populated workbook

  1. Select the same Type used to generate the workbook and click Import.
  2. In Import {Type}, choose an .xlsx file. Only the first worksheet is processed; .xls is not accepted. Reading problems (for example a workbook that is open and locked elsewhere) are shown as a message under the title Import from Excel.
  3. The importer checks cell B1, the column headers in row 3, the coordinates and the required type-specific values of every row. If B1 is empty or unknown the file is rejected with The file has no Type cell. Download a template and keep the Type row.; if it names another type the message is This file is a {Type} workbook. Choose that type, or download the matching template.
  4. Review the Import from Excel summary, which lists the type and the Add, Update and Skipped counts, plus up to 12 explanatory lines for skipped rows (each begins with Row {n}:, the worksheet row of the first line of the record). If there are no valid rows, the summary is shown with only an OK button and nothing is stored.
  5. If there are valid rows, click Yes on Import the valid rows? Existing names of this type are updated. The completion message reports {n} saved. Close the window and check the refreshed map/tree. The map refreshes only when at least one record was saved.

Rows that can be skipped, with the wording of the messages:

CauseMessage (after Row {n}:)
Neither coordinate pair filledEnter latitude and longitude, or easting and northing.
Latitude or longitude not numericLatitude and longitude must both be numbers.
Latitude outside -90 to 90 or longitude outside -180 to 180Latitude or longitude is out of range.
Easting or northing not numericEasting and northing must both be numbers.
Zone not a whole numberZone must be a whole number.
Same name twice in the workbook{name} is listed more than once.
Name already used by a different type{name} already belongs to another type.
Too few vertices{name} needs at least {n} vertices.
Missing or non-numeric required value{header} is required. or {header} is not a number.
Value out of rangeA message such as Release height must be greater than 0., Road width must be at least 1 m. or Exit velocity cannot be negative.

A matching friendly name of the same stored type updates the existing record while retaining its internal ID. New records are given the next free ID for the type. If Name is blank, the generated friendly name and source ID use the same new sequence number. No .inp file is written by this exchange.

Coordinate and numeric validation

  • Geographic coordinates require latitude in the range -90 to 90 degrees and longitude in -180 to 180 degrees. If either latitude or longitude is filled, the row is treated as geographic and any easting/northing is ignored.
  • UTM input requires both easting and northing. Zone and Hemisphere are optional: a blank or out-of-range zone falls back to the project zone, and a blank hemisphere falls back to the project hemisphere (any entry starting with S means south, anything else north). Check imported positions against the known project location when zone and hemisphere are left blank.
  • Numeric geometry fields such as length, width, height, radius, sigma, pit volume, road width and base elevation are stored to two decimal places. Temperatures, velocities, angles, buoyancy and vertex counts are not rounded.
  • Pollutant columns are optional per row. A blank or non-numeric cell is not written (a new record keeps its default and an updated record keeps its stored value), and negative emission rates are stored as zero. Check units and the physical meaning of blank and zero values before importing. Area-type and polygon sources expect a rate per square metre (Chapter 5, Section 5.2.2).
  • Point-source temperature follows the same rule as the point-source form: a value above 273.15 is kept as kelvin and a lower value is treated as degrees Celsius and converted to kelvin. The importer first rejects values of zero or below. Point-source flow is derived from velocity and diameter as
\[ Q_{\mathrm{m^3/h}} = 3600\pi\left(\frac{d}{2}\right)^2 v \]

Here, \(d\) is stack diameter in metres and \(v\) is exit velocity in metres per second. The application stores that derived value to two decimal places.

  • Circular area source radius is entered in metres and converted to kilometres for storage. Imported polygon, boundary and rectangular-source areas are calculated from the geometry.
  • For roads, RLINE uses the road type while RLINEXT retains its dedicated controls, including distance from centreline and the start and end heights.

RLINEXT non-regulatory confirmation

After importing at least one RLINEXT source, the application asks (title RLINEXT): This import includes an RLINEXT source, which switches the project to non-regulatory mode. Apply that change? Selecting Yes applies the RLINEXT project rules. Selecting No leaves the project control settings unchanged even though the imported source records have already been saved. Confirm the modelling basis in the Control Pathway (Chapter 4) before running.

Export existing records

  1. Select the required Type and choose Export. If no project is open, Open a project first. is shown.
  2. Choose the destination .xlsx file in Export {Type}. The suggested name is {Type token}.xlsx.
  3. Confirm the message {Type} exported. (title Export to Excel). Inspect the workbook and retain a copy as part of the project data record if required.

Only records of the selected type are exported, in the same layout as the template. Each record starts with its name and coordinates (latitude and longitude to eight decimals, UTM easting and northing, zone and hemisphere); multi-vertex records occupy one row per vertex with the name repeated. The type-specific values and pollutant rates are written on the first row of each record. An exported workbook can be edited and imported again to update the same records. Close dismisses the dialog.

This is part of the AERMOD One user's manual. Licences are on Editions and pricing. For a modelling project, contact Envitrans.