Published April 9, 2021 | Version v3
Software Open

Data and codes for the publication: Decay radius of climate decision for solar panels in the city of Fresno, USA

  • 1. Potsdam Institute for Climate Impact Research, Potsdam, Germany
  • 2. Potsdam Institute for Climate Impact Research, Potsdam, Germany; Mercator Research Institute on Global Commons and Climate Change, Berlin, Germany; Department of Agriculture and Resource Economics, University of California, Berkeley, USA
  • 3. Potsdam Institute for Climate Impact Research, Potsdam, Germany; Institute of Physics, Potsdam University, Potsdam, Germany; Columbia University, New York, NY, USA


This repository contains core codes and data underlying the analyses and figures from: Barton-Henry, Wenz, and Levermann (2021).The following provides a brief description of the codes and data included.


fresno_merged_solarpanel_socioeconomic_dataset.csv - This file contains the core dataset used for the all results and figures. This dataset is a result of the aggregation of the following publicly available datasets:

  • Bradbury, K. et al. Full collection: Distributed solar photovoltaic array location and extent data set for remote sensing object identification. Sci. Data (2016).
  • The County of Fresno, California. GIS Shapefiles. Fresno County GIS Portal (2020) Retrieved from: departments/public-works-planning/divisions-of-public-works-and-planning/cds/gis-shapefiles, accessed January 2020.
  • Institute of Education Science National Center for Education Statistics Education Demographic and Geographic Estimates (EDGE). School District Boundaries (2020). Retrieved from:, accessed March 2020.
  • U.S. Census Bureau. 2009–2013 5-Year American Community Survey Demographic and Housing Estimates (2014). Retrieved from, accessed November 2020.

variable_description.csv - This file includes a short description of each variable present in the main dataset, found in the fresno_merged_solarpanel_socioeconomic_dataset.csv file. 


Code included, in relevant order: - This script produces Figure 1, a map showing the geographic area of analysis along with the geolocations of solar panels, addresses, as well as examples of several radii over which panel density is calculated. - This script produces Figure 2, as well as outputs several dataframes with the normalized panel density variables used in the further analysis of the feature importances scores. - Figure 3 is produced, as well as several .csvs containing dataframes with varying panel density radii, constructed with the normalized panel density at one radius subtracted from that of the previous. - Produces Figure 4, an analysis of the influence of household income. Figures S15 and S17 of the Supplementary Information section are also created. - This script builds the three different models tested (Random Forest, AdaBoost, and XGBoost), and calculates the feature importances scores as well as performance metrics for each. - This script creates figures of the confusion matrices created from the performance output for each of the tested models, as well as the model for which panel density is omitted. These are Figures S2, S4, S6, and S7. - This script produces the estimates contained in Tables S7, S8, and S9, which are the results of the OLS analysis. - Figures S8 and S9 are produced, showing changes in the feature importances when panel density is averaged over census tract. - Analysis of the influence of density based on the number of households in each tract, resulting in Figures S11 and S12. - Creates Figures S13 and S14, providing the analysis of the influence of density across census tracts of varying area sizes. - The analysis of the influence of household value is conducted, and Figure S16 is produced. 



Files (221.2 MB)

Name Size Download all
8.0 kB Download
5.2 kB Download
16.9 kB Download
14.8 kB Download
22.1 kB Download
146.6 MB Preview Download
74.4 MB Preview Download
21.2 kB Download
24.2 kB Download
8.3 kB Download
3.3 kB Download
24.8 kB Download
18.0 kB Download
2.9 kB Preview Download