SEZ Lights, Rings and Buffers

Sums of pixel values representing nighttime light intensit, for buffers and rings around Special Economic Zones.

sandiegodata.org-sez_lights-1.1.2. Modified 2021-09-13T20:27:23

Resources | Packages | Documentation| Contacts| References| Data Dictionary

Resources

  • mean_lights. Pixel light sums for buffers and rings around the SEZ.

Documentation

This dataset provides sums of the pixel values in the nighttime lights data in regions around the SEZs from the World Bank’s SEZ dataset. The buffers are a circle for a specified radius around each SEZ, and the rings have a minimum radius of the specific radius, and a maximum radius of (1+sqrt(2)) times larger, so the area of the ring for a radius is equal to the area of the buffer circle.

Here is an example of the buffer and ring for an SEZ in South Korea:

This file can be joined to the SEZ data on the unique_id column. For each SEZ and year of the NTL data, this file includes the sum of the pixel values from the NTL rasters for both the ring and the buffer, and the radius specified in the radius column. The *_count column is the number of non-null pixels in each region.

Example Analysis

See this Jupyter notebook for an example of using this file.

Images

  • Example of a 5km buffer and the ring around it.

Contacts

Data Dictionary

mean_lights

mean_lights

Column NameData TypeDescription
yearintegerYear of night time lights data
unique_idstringUnique id for the SEZ
buffer_pix_sumintegerSum of the pixel values for pixels within radius of SEZ point
buffer_pix_countintegerNumber of non-null pixels in buffer region
ring_pix_sumintegerSum of pixel values in ring area, outsize of buffer area. Area of ring is equal to area of the buffer.
ring_pix_countintegerNumber of non-null pixels in ring region
buffer_areanumberArea of buffer area in square meters
ring_areanumberArea of ring area in square meters
radiusintegerRadius of buffer circle, and inner radius of ring.

References

Urls used in the creation of this data package.

  • metapack+http://library.metatab.org/worldbank.org-sez-1.1.1.csv#sez. SEZ Locations and data
  • metapack+http://library.metatab.org/figshare.com-harmonized_ntl-1.1.1.csv. Harmonized Nighttime lights

Packages

Accessing Data in Vanilla Pandas

import pandas as pd


mean_lights_df =  pd.read_csv('http://library.metatab.org/sandiegodata.org-sez_lights-1.1.2/data/mean_lights.csv')

Accessing Package in Metapack

import metapack as mp
pkg = mp.open_package('http://library.metatab.org/sandiegodata.org-sez_lights-1.1.2.csv')

# Create Dataframes
mean_lights_df = pkg.resource('mean_lights').dataframe()