This code uses Python 3. To install all Python-related dependencies, use environment.yml file.
conda install git
git clone https://github.com/nomineb/mef.git
conda update conda
cd mef
conda env create -f environment.yml
conda activate mef
The pipeline to generate formatted CEMS data, aggregated by different spatial options, run for the year of interest (2022 in this case):
cd src
python data_pipeline.py --year 2022
The downloaded raw data will be stored in data/downloads
and the process and aggregated data will be in data/outputs
.
After that, in order to calculate the factors, run the following command. --factorType argument takes in two options: average or marginal.
python get_factor_estimates.py --factorType marginal --year 2022
The results will be stored in data/results/
.