13.6 Merge emission rate files
In the print dialog, choose Save as PDF.
Command: Tools > Merge Emission Rate Files
Window: Merge Emission Files
Access: Licence feature Hourly emission file tools, plus an open project.
The utility combines the hourly records of several .emi files into one pollutant-named .hef file named {pollutant}_emissionfile.hef (the project's current pollutant, whole name in lower case).
Layout
| Control | Purpose |
|---|---|
| List of Selected Hourly Emission Files: | List with columns File Name, Full Path, Size and Date Modified |
| Download Sample File link | Opens https://www.envitrans.com/aermod-sample-files in your web browser |
| Footer icon (left) | Select files: opens Select Hourly Emission Files (filter EMI Files (*.emi), several files can be chosen) |
| Footer icon (next to it) | Merge the listed files |
| Footer icon (right) | Close |
| Message line and folder icon | After a merge, the line shows Files merged successfully. Output file created at: and the path; the small icon beside it opens the project folder in Windows Explorer |
These footer icons carry no tooltip text.
Procedure
- Open the target project and select Tools > Merge Emission Rate Files. Without a project the command stops with Open a project file!; without the licence, the licence upgrade screen opens.
- When the window opens, it lists the
.emifiles in the project folder whose names begin with the current pollutant code. If none are found, Please note: No .emi files found in the specified folder. appears (or The specified directory does not exist.). If a merged.heffile already exists, the message line shows it. - To merge other files, click the select-files icon and choose them; the list is replaced by your selection. Review the list before merging.
- Click the merge icon. The file
{pollutant}_emissionfile.hefis written to the project folder; if no project folder is known, it is written next to the first selected file. An existing.hefof that name is overwritten. - Open the
.hefand inspect the order of the records, the source IDs, the pollutant and the date and hour coverage. When you open the AERMOD run window, a file with this name in the project folder is reported as Hourly emission files found at:, and you can browse to a different.hef.
What the merge does to the records:
- It reads every line, collapses repeated spaces and keeps only lines that follow the layout
SO HOUREMIS year month day hour source rate .... Other lines are ignored. - Records that are identical in date and hour, source and rate are written once. Records for the same source and hour with different rates are all kept; the merge does not fill missing hours or resolve overlaps between sources.
- Each output line is
SO HOUREMIS, year, month, day, hour, source, the rate with eight decimals (a value that is not a number is written as 0), and, when present in the source file, the temperature and exit velocity carried through unchanged. - Lines are ordered numerically by year, month, day and hour, and then by source ID, so hour 2 of a day is placed before hour 10 of the same day.
Messages (title Please note unless stated): No input files provided. Exiting..., File not found: {file}, Input file paths are empty. No operation performed. After either of the first or third messages, the merge icon stays disabled until you close and reopen the window. The merge can also warn No lines found in input files. or No records parsed from the input lines. (title Please review); the message line can still read Files merged successfully in that case, so confirm that the .hef file exists and contains records.
This is part of the AERMOD One user's manual. Licences are on Editions and pricing. For a modelling project, contact Envitrans.