Giter VIP home page Giter VIP logo

index-calculator's Introduction

Hi there, thank you for visiting my profile

I am Niko, a Master's student at Heidelberg University in Geography and Geoinformatics.

πŸ“š My main goal by having and updating this repository is to be able to show you my work and skills in order to raise your interest in doing possible collaborations with me. There is so much more one can learn and experience and I am ready to take on new challenges you could offer me.

πŸ˜„ Therefore, have fun browsing through projects I made during my education, on my own or in collaboration with others with various topics surrounding geoinformatics and coding.

🀘 Additionally, there is a repository about my hobby no. 1 (making/writing music under the name Atlas Descending) and if you are interested in new music from different genres, I am happily welcoming you to a fitting growing place.

πŸ•ΊπŸ’ƒ I would gladly have the chance to collaborate with you if you have some ideas for really anything, be it coding, making music, doing scientific work or something completely different but fun.

How to reach me:

LinkedIn      Mail

✨ Looking forward to hear from you! ✨


Currently listening to on Spotify:

GitHub statistics

grhalbgott grhalbgott

Languages and Tools

bash blender cplusplus css blender gimp git html inkscape javascript jquery jupyter latex linux photoshop python python raspberrypi rstudio spss typo3 vscode
grhalbgott

index-calculator's People

Contributors

grhalbgott avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

nilick

index-calculator's Issues

Range for plot

extra argument for range from to (-f 0 -t 0.4)
parse into plot function and give to index_plot

Automatic analysis

After calculating the index, save some further analytic data into results/ like:

  • histogram
  • statistics (min, max, mean, std.dev)
  • other?

NDSI

Normalized Difference Snow Index
NDSI = (Green - SWIR)/(Green + SWIR)

Riggs, G., D. Hall, and V. Salomonson. "A Snow Index for the Landsat Thematic Mapper and Moderate Resolution Imaging Spectrometer." Geoscience and Remote Sensing Symposium, IGARSS '94, Volume 4: Surface and Atmospheric Remote Sensing: Technologies, Data Analysis, and Interpretation (1994), pp. 1942-1944.

NBR2

Three things are required:

  1. Name of index in full and as abbreviation:
  • NBR2
  • Normalized Burn Ratio 2
  1. Formula (including bands), maybe even reference to according literature
  • (SWIR1 – SWIR2) / (SWIR1 + SWIR2)
  • Sentinel-2: NBR2 = (B11 – B12) / (B11 + B12)
  • Landsat 8-9, NBR2 = (Band 6 – Band 7) / (Band 6 + Band 7)
  1. How the plot should look like (output range and cmap)
  • RdYlGn
  • -1 to 1

Merge index calculator functions

the only thing that changes between Landsat and Sentinel is the data structure. Therefore the calculations can be the same but there has to be another variable "data structure/path"

Utils function index_calculator manages then which calculations are possible

ARVI

Atmospherically Resistant Vegetation Index
ARVI = (NIR – (2 * RED) + BLUE) / (NIR + (2 * RED) + BLUE)

New file indices.py

Put all index-calculation in a new file and use utils for:

  • read_raster
  • cut_raster
  • function caller (which function for which index)

NDRE

Normalized Difference Red Edge Vegetation Index
NDRE = (NIR – RED EDGE) / (NIR + RED EDGE)

NBR

Three things are required:

  1. Name of index in full and as abbreviation:
  • NBR
  • Normalized Burn Ratio
  1. Formula (including bands), maybe even reference to according literature
  • (NIR - SWIR) / (NIR + SWIR)
  • Sentinel 2: NBR = (B8A – B12) / (B8A + B12)
  • Landsat 8-9, NBR = (Band 5 – Band 7) / (Band 5 + Band 7
  1. How the plot should look like (output range and cmap)
  • RdYlGn, -1 to 1

BUG: SAVI

Statistics show wrong values
Histogram seems wrong as well?

GNDVI

Green Normalized Difference Vegetation Index
GNDVI = (NIR – GREEN) / (NIR + GREEN)

Automate getting aoi if no aoi is specified

OSM-boundaries or gadm.org, check where an API is available and use it to get an aoi (Name of city) if no aoi is specified (if os.path(glob.glob("./data/shapes/*)) not True: get aoi OR if aoi is specified through cmd, get from api

SIPI

Structure Intensive Pigment Vegetation Index
SIPI = (NIR – BLUE) / (NIR – RED)

Update Readme

Include output options
check for grammar and language

BUG: GCI

Statistics show wrong values
Histogram seems wrong as well

VARI

Visible Atmospherically Resistant Index
VARI = (Green - Red) / (Green + Red - Blue)

Gitelson, A., et al. "Vegetation and Soil Lines in Visible Spectral Space: A Concept and Technique for Remote Estimation of Vegetation Fraction." International Journal of Remote Sensing 23 (2002): 2537βˆ’2562.

BUG: reip

Statistics show wrong values
Histogram seems wrong as well

HOW TO INDEX

  1. write function in indices.py
  2. include in index_calculator() in utils.py
  3. Check max resolution in resolution_handler() in utils.py
  4. define how to plot in plottype_handler() in utils.py
  5. Update Readme
  6. Commit and close issue

SAVI

Soil-Adjusted Vegetation Index
SAVI = ((NIR - Red) / (NIR + Red + L)) x (1 + L)
default L = 0,5
but you can put in you own value

Testing

In_raster1 = np.array(0, 0, 0, 0, 1, 2, 3)
In_raster2 = np.array(0, 0, 0, 0, 1, 2, 3)

Assert out_raster = zahlen verΓ€ndert je nach forme

BUG: SIPI

Statistics show wrong values
Histogram seems wrong as well

BAI

Burn Area Index
BAI = 1/((0.1 -RED)^2 + (0.06 - NIR)^2)

Chuvieco, E., M. Pilar Martin, and A. Palacios. "Assessment of Different Spectral Indices in the Red-Near-Infrared Spectral Domain for Burned Land Discrimination." Remote Sensing of Environment 112 (2002): 2381-2396.

Argument: satellite

Sentinel-2, Landsat 8 and MODIS/AVHHR are suitable
look up what makes sense next to Sentinel-2 and Landsat

REIP isn't working as expected

the value range is wrong and the image seems wrong as well

Possible solution:

  • calculation is wrong (but it is not, proven by using QGIS Raster Calculator)
  • range of values, NoData values

MNDWI

Modified Normalized Difference Water Index
MNDWI = (Green βˆ’ MIR)/(Green + MIR)

Hanqiu Xu (2006) Modification of normalised difference water index (NDWI) to enhance open water features in remotely sensed imagery, International Journal of Remote Sensing, 27:14, 3025-3033.

Change plot of NDWI

-0.8 to 0.8 with three colors (RdYlGn) but with higher contrast (Green - White - Blue) -> viridis?

GCI

Green Chlorophyll Vegetation Index
GCI = NIR / GREEN – 1

NDBI

Normalized Difference Built-up Index
NDBI = (SWIR - NIR) / (SWIR + NIR)

Zha, Y., J. Gao, and S. Ni. "Use of Normalized Difference Built-Up Index in Automatically Mapping Urban Areas from TM Imagery." International Journal of Remote Sensing 24, no. 3 (2003): 583-594.

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.