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

44 increase emissions allocation efficiency #45

Closed amyryao closed 2 months ago

amyryao commented 3 months ago

I've separated allocate_emissions into two methods, allocate_emissions and intersect_geometries. I'm going to update some of this code later when working on issue 10!

amyryao commented 3 months ago

I've updated process_emissions so that it only calls intersect_geometries once outside the for loop, and then calls the second allocate_emissions method in the for loop each time with the result. The code currently takes around 2.7 minutes to run, so around the same time as it was before, but hopefully it's helpful on the long run!