This repository contains the data, code, and images for Colorado data center cost and revenue map.
You can view the current interactive version of the map in your browser by clicking on this link (it might take a few seconds to load, 75MB). You can also download the HTML file of the visualization co_datactrcostrevmap.html or create it from the source geographic files from the code in the CO-DataCtrCostRev GitHub repository following the steps below.
Figure 1. Screenshot of interactive visualization map of Colorado data center costs and revenues
When you open the HTML file in your browser, there are some functions you can use in the plotting and legend areas and on the right side of the image.
- Muting layers in the legend. You can click on the icon for each layer item in the legend to mute that layer in the image. This allows you to focus on different layers.
- Wheel zoom.
Executing the following steps in order will allow you to replicate the analyses in the article of accessing the geographic data, reading it into the computer, reformatting the data, creating an interactive visualization, and calculating area metrics.
- Install Python programming language on your computer. All the analyses in this article use the Python programming language. I recommend you download the free Anaconda distribution of Python here (https://www.anaconda.com/download; skip the registration).
- Not necessary but recommended. Install Git software on your. Follow the instructions at https://git-scm.com/install/. This is version control software that integrates seemlessly with the GitHub online platform. You can download all the files directly from GitHub.com without any Git software. But the Git software will allow you to more efficiently interact long-term with the project.
- Download or clone the
CO-DataCtrCostRevGitHub repository. I recommend you use Git.- Fork the main repository to your own GitHub account. Go to the main repository https://github.com/OpenSourceEcon/CO-DataCtrCostRev and press the "Fork" button in the upper-right corner of the screen. Select your GitHub account. This will create a copy of the repository on your account to which you can make any changes or upgrades you want. For example, my fork of the main repository is at https://github.com/rickecon/CO-DataCtrCostRev.
- Clone your fork of the main repository to your hard drive. In the Terminal on your computer (Mac, Linux) or in the Windows prompt, navigate to the directory on your hard drive where you want to save this directory. From the main page of your fork of the repository in your browser, click on the green "Code" button. Copy the URL from the "HTTPS" tab. Then, in your Terminal in the directory where you want to save these files, type:
git clone https://github.com/[YourGitHubHandle]/CO-DataCtrCostRev.git. You should put your GitHub handle in the spot where it says "[YourGitHubHandle]".
- Create the
CO-DataCtrCostRevvirtual environment using Python'suvpackage. This is similar to a Docker image. It creates an environment of packages and versions on which the Python scripts are known and tested to run correctly across operating systems.- [TODO: Put
uvinstructions here]
- [TODO: Put
- In your Terminal or Anaconda prompt and with the
CO-DataCtrCostRevvirtual environment activated, run theCO_DataCtrCostRev.pyscript by typing:run CO_DataCtrCostRev.py.
