Skip to content

Madkhix/tr_light-pollution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turkey Light Pollution Analysis

This project analyzes city-level light pollution trends in Turkey using VIIRS satellite raster data and administrative boundaries.

Data Source

File Structure

  • light_pollution_tr.py: Main script for analysis and data processing.
  • gadm41_TUR_1.json: GeoJSON file containing Turkey's provincial boundaries.
  • viirs_data/: Folder for VIIRS satellite raster files (average_masked*.tif and .tif.gz).
  • tr_light_pollution.csv: Output file with yearly average brightness per city.
  • .gitattributes: LFS settings.

Usage

  1. Install required Python packages:
    pip install geopandas rasterio numpy pandas scikit-learn matplotlib
  2. Download the VIIRS average_masked raster files from the link above and place them in the viirs_data/ folder.
  3. Add the Turkey boundaries file (gadm41_TUR_1.json) to the project root.
  4. Run the analysis:
    python light_pollution_tr.py
  5. Results will be saved to tr_light_pollution.csv. A trend graph for Ankara will be displayed.

Output

  • The CSV file contains average brightness values (average_brightness) for each city and year.
  • The script prints the light pollution trend for Ankara and shows a visualization.

About

This project analyzes city-level light pollution trends in Turkey using VIIRS satellite raster data and administrative boundaries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages