Geospatial Data in R - Extracting Raster Data at Points

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

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

  • @lizadorinet
    @lizadorinet 3 года назад +1

    Everything is so well explained, grateful for the time you dedicated to this tutorial! Thank you for sharing, it was very helpful!

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

    Very helpful, i like your tutoriels

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

      🙏 Thank you! Very glad they are useful!

  • @tamaravallina73
    @tamaravallina73 3 года назад +1

    Amazing! thank you :)

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

    great tutorial! Thanks

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

    so nice!

  • @sonyapastran2030
    @sonyapastran2030 3 года назад

    This is very helpful! I am wondering - is there an extra command that could be added here to extract the mean values from the raster using a set buffer zone around each point observation?

    • @weecology
      @weecology  3 года назад +1

      Glad it's helpful! The way you handle buffers using stars is to use the st_buffer() function to create a spatial object that is a polygon that is a buffer around each point and then pass that to aggregate. There is some more detailed discussion and an example here:
      www.pmassicotte.com/post/2021-03-06-extracting-raster-values-using-polygons/

  • @gma3486
    @gma3486 3 года назад

    This is very helpful for points label data. Do you know what should be done if you have a Multipolygon label data? I think it might have to do with centroids, but I don't seem to get it right.

    • @weecology
      @weecology  3 года назад

      Here's a similar video on polygons: ruclips.net/video/UbvZ5wsGyo8/видео.html
      Hopefully it helps!

  • @sobhanmishra8199
    @sobhanmishra8199 3 года назад

    Thank you Sir. This Video was quite helpful. Is it possible to export those values into excel. As i am dealing with time series datasets for a layer stack image of 365. I did extracted the values. but i had to enter it in sequence manually. So is there any way of directly exporting it into excel directly

    • @weecology
      @weecology  3 года назад

      Glad the video was helpful. If you have the data in a data frame in R and want to work with it in Excel you can export that data frame using the `write.csv` function. It takes two main arguments: the first argument is the data frame that you want to export and the second argument is the name of the file you want to save it to. More details here: www.rdocumentation.org/packages/AlphaPart/versions/0.8.1/topics/write.csv

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

    how do you increase the size of the raster? i have plotted the raster but the size is too small

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

      What do you mean by "increase the size"? Are you trying to make the plot larger or change the resolution of the raster cells?

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

      @@weecology my DEM is appearing really small on the plot but everything else is fine so I want to make the DEM bigger

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

      @@kgaogelophogole7651 Is it possible to post a screen shot somewhere so I can see what's happening?

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

      @@weecology I tried opening the raster data using stars but it doesn't plot it runs doesn't plot

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

    how can i implement this is python?

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

      Here's a site showing how to do similar things Python using the same basic data: ruclips.net/video/QhUcgOOsUy8/видео.html