echo-air-model / echo-air

A repository of scripts used for converting emissions to concentrations and health impacts using the InMAP Source-Receptor Matrix
MIT License
2 stars 0 forks source link

Increase emissions allocation efficiency #44

Closed lkoolik closed 2 months ago

lkoolik commented 3 months ago

While I was commenting on the emissions warning branch, I realized we could much more efficiently allocate emissions in the concentration_layer object. Currently, it performs the geometric intersection individually for each pollutant, which is really inefficient! Can we update this code to decompose the current allocate_emissions method of the concentration_layer object?

I think this issue will be related to Consolidate area apportionment functions into one, but should be a good starting point to modularize something that is unnecessarily repetitive!

I think this should take ~30 min to an hour