InMAP runs with county level NEI return 0/NaN values -- why?

16 views
Skip to first unread message

Emma Rieves

unread,
Aug 23, 2025, 5:40:31 PMAug 23
to inmap-users
Hi all,

Just ran InMAP using county-level livestock NEI emissions from 2019. Attached are emissions input file (.shp), a screenshot of the output shapefile, config file (.toml) and InMAP output log. The values I'm getting are 0/Nan, but given that the input emissions file contains emissions for several pollutants, I'm wondering why this is. Please let me know if you have any insight into this.

Thanks,

Emma
test_format.cpg
test_format.shx
Screenshot 2025-08-23 at 3.39.14 PM.png
test_format.shp
test_format.prj
test_format.dbf
inmap_UT_livestock_county_formatted.16979965.out
county2019_UT_sector_19.toml

Chris Tessum

unread,
Aug 23, 2025, 6:35:23 PMAug 23
to inmap-users
The key part of the output log file is here:

===
2025/08/22 15:49:51 Emission totals:
2025/08/22 15:49:51 gOrg, NaN μg/s
2025/08/22 15:49:51 pOrg, 0 μg/s
2025/08/22 15:49:51 PM2_5, NaN μg/s
2025/08/22 15:49:51 gNH, NaN μg/s
2025/08/22 15:49:51 pNH, 0 μg/s
2025/08/22 15:49:51 gS, NaN μg/s
2025/08/22 15:49:51 pS, 0 μg/s
2025/08/22 15:49:51 gNO, NaN μg/s
2025/08/22 15:49:51 pNO, 0 μg/s
===

This is saying that InMAP is reading the sum of the emissions as 0 for some pollutants and NaN for other ones. The NaN totals may happen if there is a row in the emissions shapefile that is NaN or NULL or some other unreadable value. And then if there is one NaN value that will propagate through to all the other numbers it touches as InMAP is running.

Hope that helps!

Chris

Emma Rieves

unread,
Aug 28, 2025, 11:55:38 AM (12 days ago) Aug 28
to inmap-users
Hi Chris,

Thanks for your prompt input! 

I changed the NaNs (I was exporting the wrong version of the emissions file in my cleaning script) to 0s, but am still having a similar issue. The output file still has all pollutants initializing with a value of at 0 ug/s and it then finishes with a NaN% increase at the first convergence check (see attached log file). This seems like it wouldn't be the case though, since several pollutants have nonzero emissions values in the input emissions file (see attached screenshot) and since I wouldn't expect this sector (livestock) to produce zero concentrations as a result of the run. I'm wondering if you--or anyone else--has any other advice on what might be going wrong.

The emissions in question are 2019 county-level NEI emissions downloaded from the EPA's platform. Could the issue be that the emissions aren't gridded?

Any advice you can share would be greatly appreciated.

Best,

Emma
county_livestock_test.17099553.out.txt
Screenshot 2025-08-28 at 9.48.27 AM.png
Reply all
Reply to author
Forward
0 new messages