This is the code used in the paper, "A Land Use Regression Model to Predict Emissions from Oil and Gas Production Using Machine Learning." The code used to calculate O&G locational prevalence, wind prevalence, and urban prevalence is here.
modules.py contains the methods that calculate well activity center, wind direction percentages, and city wind strength.