NDVI calculation from Landsat8 images with Python 3 and Rasterio - Tutorial

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • Satellite images are georasters, these images are a regular array of columns and rows (a matrix per band) with a georeferenciation. Python is a programming and data analysis language very versatile for the matrix algebra with the Numpy library, however there was no efective and simple way to process a georaster until the development of the Rasterio package.
    Rasterio is a library to open, write, explore and analyze georasters in Python. The library uses GeoTIFF images along with other formats and is capable to work with satellite images, digital elevation models, and drone generated imagery.
    This tutorial show the complete procedure to analyse the NDVI from a Landsat 8 image with Python 3 and Rasterio. The scripting and representation was performed on a interactive enviroment called Jupyter Notebook, finally the result georaster was opened in QGIS and compared with some background images.
    Input data
    You can download the input data and scripts used for the tutorial on this link:
    www.hatarilabs...

Комментарии • 29

  • @FRANKFIFORM
    @FRANKFIFORM 2 года назад +1

    This is exactly what I needed, clear and simple! Thank you so much!

    • @hatarilabs
      @hatarilabs  Месяц назад

      Share our blog with your friends

  • @alosplanetas
    @alosplanetas Год назад

    Super helpful video, thank you!

  • @olumideakinlabi1519
    @olumideakinlabi1519 2 года назад

    This is apparently helpful. Thank you so much

  • @smurfk7678
    @smurfk7678 3 месяца назад

    It's a nice video

  • @smurfk7678
    @smurfk7678 3 месяца назад

    Can you please make videos for landuse landcover classification from multiple Landsat 8 images for a specific study area including agriculture, built-up, water bodies, forest , vegetation cover, snow and glacier etc?

    • @hatarilabs
      @hatarilabs  3 месяца назад

      We will think about ti!

  • @raulborda5056
    @raulborda5056 5 лет назад

    Excelente video y muchas gracias.

  • @smurfk7678
    @smurfk7678 3 месяца назад

    How can we calculate ndvi from multiple images? Can you provide a script?

  • @islandmonkey87
    @islandmonkey87 5 лет назад +1

    Are the bands radiometrically corrected prior to ndvi calculation?

  • @TheYashO
    @TheYashO Год назад

    Actually I want to ask can we apply ndvi to single plant and get comments if it's healthy or stressed ??

  • @bi4lwt5
    @bi4lwt5 5 лет назад

    Love your video!

  • @c.ravindra3626
    @c.ravindra3626 2 года назад

    hello sir,
    can we stack panchromatic band(b8.tif) with (b2,b3,b4).
    if you have a code or any information related to these please reply.

  • @raulborda5056
    @raulborda5056 5 лет назад

    Hola Saul. Es posible con rasterio obtener el corte de un poligono que muestre el NDVI?

  • @ayebmalek2954
    @ayebmalek2954 Год назад

    Hello, can someone helps me to interprate the last plot (yellow and green) please , how can we read the graph ?

  • @shreyashchoubey4530
    @shreyashchoubey4530 4 года назад

    can you save the ndviImage tiff file with cmap ? if yes how?

  • @yashpurbey567
    @yashpurbey567 Год назад

    hello sir,
    everytime i try to open such bands using rasterio and print out my arrays using open and read they all come out as zeros. could you help me out with why thats happening?

  • @PriyankaSharma-ge9xl
    @PriyankaSharma-ge9xl Месяц назад

    Why my code is showing
    array ([[0, 0, 0, ..., 0, 0, 0],
    [0, 0, 0, ..., 0, 0, 0],
    [0, 0, 0, ..., 0, 0, 0],
    ...,
    [0, 0, 0, ..., 0, 0, 0],
    [0, 0, 0, ..., 0, 0, 0],
    [0, 0, 0, ..., 0, 0, 0]], dtype=uint16)
    while representing #raster values as matrix array.
    Please guide me.

    • @hatarilabs
      @hatarilabs  Месяц назад +1

      Seems to be empty on the borders

    • @PriyankaSharma-ge9xl
      @PriyankaSharma-ge9xl Месяц назад

      How to resolve this ?

    • @hatarilabs
      @hatarilabs  Месяц назад

      @@PriyankaSharma-ge9xl Evaluate if you can get results

    • @PriyankaSharma-ge9xl
      @PriyankaSharma-ge9xl 17 дней назад

      @@hatarilabs what should i do to get values ? Please suggest.

  • @bhupendrakumar2277
    @bhupendrakumar2277 5 лет назад

    Hatari, very good job. May God/Allah Bless you.
    Can you help me solving a problem: I have images with huge volume with total size being around 25 to 190 GB i have to merge them together whiling taking care of no data value.
    Secondly, from same images i want to create TMS(tiled Map Service ) a lighter and faster version of raster for uploading on any platform- that u might be knowing much better than me.
    So, could you help in solving these issue.

    • @arnabpaul4073
      @arnabpaul4073 2 года назад

      what kind of merging you want? Kindly clear the problem

  • @luigic6544
    @luigic6544 5 лет назад

    Can some here help me to download rasterio lib?

    • @jacobokomo1880
      @jacobokomo1880 5 лет назад

      It is pretty easy to download and install
      depending on your OS and programming language.
      in windows, i would recommend you run these commands:
      pip install geopandas
      this will install fiona, rTree, rasterio, e.t.c
      in Linux open the terminal and run these commands :
      sudo apt-get update
      sudo apt-get install geoapandas.
      this will install fiona, rTree, rasterio, e.t.c

  • @islandmonkey87
    @islandmonkey87 5 лет назад

    Are the bands radiometrically corrected prior to ndvi calculation?