This project analyzes city-level light pollution trends in Turkey using VIIRS satellite raster data and administrative boundaries.
- VIIRS annual nighttime light data is downloaded from [https://eogdata.mines.edu/nighttime_light/annual/v22/]
- The analysis uses the
average_maskedraster files for each year.
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*.tifand.tif.gz).tr_light_pollution.csv: Output file with yearly average brightness per city..gitattributes: LFS settings.
- Install required Python packages:
pip install geopandas rasterio numpy pandas scikit-learn matplotlib
- Download the VIIRS
average_maskedraster files from the link above and place them in theviirs_data/folder. - Add the Turkey boundaries file (
gadm41_TUR_1.json) to the project root. - Run the analysis:
python light_pollution_tr.py
- Results will be saved to
tr_light_pollution.csv. A trend graph for Ankara will be displayed.
- 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.