This repository contains the code and necessary files to generate helpful datasets and figures for my research on the environmental costs of data centers. To run a program, download or install the associated files and dependencies listed below. The files for my project are organized into three folders:
- Data
- PythonPrograms
- ResearchPaper
The Data folder contains the csv and shapefile files used in my research. It holds all the supplemental files that may be needed in order to run the programs in PythonPrograms.
The PythonPrograms folder contains runnable Python programs. Many of these programs require files from the Data folder. Be sure to check that you have downloaded the proper files indicated below before running these programs. When running the Python programs, be sure that the necessary files are moved into the same directory.
This file plots specifically the 2022 energy generation data of each state from the EIA on a choropleth map. It also generates a csv file with the data and saves it as 'filtered_generation_2022.csv'.
- annual_generation_state.xlsx
- filter2022.py
filter2022.py has the follwing dependencies:
- plotly
- pandas
These can be installed with the following, repectively
pip install plotlypip install pandasNavigate to the location of filter2022.py and run it using:
python3 filter2022.pyThis program generates a stacked area chart of Arizona's energy production from 2022.
- StackedArea.py
- ArizonaOverTime.csv
StackedArea.py has the following dependencies:
- matplotlib
- pandas
These can be installed with the following, respectively
pip install matplotlibpip install pandasNavigate to the location of StackedArea.py and run it using
python3 StackedArea.pyThis program will generate a chloropleth map of the Energy Generation Efficiency of states in the United States based on info from the EIA.
- USStatesMap.py
- combined.csv
USStatesMap.py has the following dependencies:
- plotly
- pandas
These can be installed with the following, respectively
pip install plotlypip install pandasNavigate to the location of USStatesMap.py and run it using:
python3 USStatesMap.pyThis file is a work in progress to display the 8-digit Hydrologic Unit Codes of the US. These are used to distinguish between water subbasins. This doesn't currently work.
The ResearchPaper folder contains my research paper for this project as a LaTeX file. In order to compile this file and convert it to a pdf, ensure the the necessary files are in the same directory and follow the instructions listed below.
This file is the LaTeX code for the research paper for this project.
- AustinDeng_DataCenterSustainability.tex
- projection.png
Navigate to the location of AustinDeng_DataCenterSustainability.tex and compile using pdflatex:
pdflatex AustinDeng_DataCenterSustainability.texThe full main project has a broader scope, and is exploring the carbon and water costs of the increasing demand for data centers. My research paper, which can be found in the ResearchPaper folder extensively details my work. There may be more files added depending on what kind of figures are needed or helpful for displaying what I've researched.