Extracting Topographic Elevations using Python

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

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

  • @wasumanawko4825
    @wasumanawko4825 4 года назад +1

    I have no words to appreciate you. all of your video tutorials are very helpful for many researchers. Your presentation is also smart. please keep it up.

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

    This was very helpful, thanks for taking the time to make such a clear tutorial :)

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

    Love your videos !! It has really helped with getting work done for my research .. Cheers

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

    Hi, spyder is showing a error of invalid projection:no database context specified can you please help me resolve it.

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

    can you please tell, how to extract coordinates from image into csv file

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

    Please help me in that, I really need this heatmap thing cause there are no such tutorial on that topic

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

    Hi, thanks for your video! Could you explain how should we choose the unit for longitude and latitude? I put longitude and latitude in the 'feet' unit in the 15 line. But the row and col out of the boundary. Should we convert the lon and lat into a specific unit? If i type 'dem.crs', it outputs CRS.from_epsg(26917)

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

      Yes, both the CRS of the Shapefile and DEM raster have to be in same units. Moreover, we could reproject geodataframe simply using gdf = gdf.to_crs(3857). Then, use rioxarray to reproject (which is simpler than rasterio). import rioxarray as rxr -> dem_raster = rxr.open_rasterio('filepath_to_raster') -> dem_reproject = dem_raster.rio.reproject('EPSG:3857') -> dem_reproject.to_raster('output_file_path'). Now, you can use the above code to extraction the elevation perfectly.

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

    Hi, when i run this
    # reading DEM
    dem = rasterio.open('DEM.tif')
    row, col = dem.index(longitude, latitude)
    dem_data = dem.read(1)
    print('The elvation of' + name + ':' + str(dem_data[row,col]) + 'meters')
    I have error:
    IndexError Traceback (most recent call last)
    Cell In [22], line 5
    3 row, col = dem.index(longitude, latitude)
    4 dem_data = dem.read(1)
    ----> 5 print('The elvation of' + name + ':' + str(dem_data[row,col]) + 'meters')
    IndexError: index -977727 is out of bounds for axis 0 with size 5715

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

    How do I find DEM file for, let's say, Florida?

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

      You can use USGS EarthExplorer. There is a tutorial that I have done showing how to download SRTM dem for any location :)

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

      @@geodeltalabs Thank you! It is very helpful!

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

    is there a way to extract the entire area elevation instead of just points

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

      How do you intend to define the 'entire area elevation'? as long as you have a sufficient coverage of points to cover each pixel, that would basically give you all the different elevation values.

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

    Amazing one , I need a help can you make a video how to create a heatmap using python using shape points and save it in tiff raster format? It will be really helpful.
    Scenario: suppose you have shape points of wildfires with “brightness“ column and you want to create heatmap of that column using that shapefile points. And you want to save it in tiff

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

    Thank you so much

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

    Good stuff, but you skipped over what is going on with dem.read(1)

  • @MdAthick
    @MdAthick 4 года назад +1

    Sir, I am a PhD student. I want you python for processing geospatial data, could you please suggest me some books, materials and links for Python for geospatial analysis.

    • @geodeltalabs
      @geodeltalabs  4 года назад +1

      Hi, there are good resources by Packt Publishing. www.packtpub.com/
      I recommend you check some out there.

    • @MdAthick
      @MdAthick 4 года назад +1

      @@geodeltalabs Thanks a lot for your suggestion. Could you please tell me the keywords to search in packtpup ?