Coder Social home page Coder Social logo

yushgoel / nightpy Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 1.69 GB

Use Night Light Data easily... Well Almost Easily!

Jupyter Notebook 77.82% Shell 1.16% C++ 8.33% C 9.42% Objective-C 0.44% Fortran 2.10% Python 0.73%
nightlight satellite-data satellite-imagery python3

nightpy's Introduction

Nightpy

Code for using VIIRS Night Light Data

Earth At Night - Credits Blue Marble Earth at Night in 2012

Jupyter notebooks

Concise_research.ipynb - Contains code for regression between Night Light and GDP (scroll to end). Picked 21 cities for regression and present results.

Download Data.ipynb - Contains code for downloading only the right Night Light data files. Need to create own account in portal for this.

Pipeline.ipynb - Contains code for running Night Light pipeline. Shows how to use helper functions for crude analysis.

Python Code

night_light_utils.py - Contains helper functions for simple manipulation of data. Check function comments for more details.

report_gen.py - Generate a report for analysis for chosen dates (modify dates in program) for city entered by user.

Organization

"Data" Folder - All Night Light Data downloaded is to be stored here for use by functions in code above.

"Renaming_data" Folder - When downloading data using Jupyter notebook, all files will be initially moved here. Once done downloading, run command "rename_data()" in python. This will rename files in appropriate format, and can be accessed based on dates chosen by user.

"Summaries" Folder - All summaries generated by report_gen.py are stored here.

"VNP46A1" Folder - This folder is required for programmatic downloading of data and handling the NASA API

"hegMACv2.15" Folder - This folder contains an executable file. This is an application for converting HDF5 files (file format in which data is downloaded) into geoTIFF files. Once converted to geoTIFF, these files can be overlayed on a map. Preferably, download Google Earth Pro, and overlay images there. Note that this executable was made on a Mac system, so you may have to reinstall it.

nightpy's People

Contributors

yushgoel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

marziyafarooq

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.