Burning river in DEM using map algebra in QGIS

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

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

  • @Zoe-kw6we
    @Zoe-kw6we 2 года назад +1

    Hi Hans! Thanks for the great video. Unfortunately, the 'reclassify values' option doesn't show up in my toolbox. I do have SAGA, but it's not there. I tried achieving the same result with QGIS's 'reclassify by table', but get 0 & 241 as options when I choose byte as data output & two categories of 1 when I choose Float32 as data output. I am new to QGIS so mainly working through trial & error, but I think not having an understanding of what I'm doing doesn't help here.
    Do you know why the 'reclassify values' option does not show up? & could I work around it with the QGIS 'reclassify by table' option if I choose different settings?

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

      The "reclassify values" is indeed no longer included. The "reclassify by table" tool can indeed be used instead. The data type should be Byte and you can use the same settings. Check with the Paletted/Unique values renderer if the result then has only value 1. I'll soon upload a new version of the video where we use the new PCRaster Tools plugin, which might be easier.

    • @Zoe-kw6we
      @Zoe-kw6we 2 года назад

      @@HansvanderKwast Thanks a lot for your answer, I've worked it out! Looking forward to more videos, your tutorials are the best! :)

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

      @@HansvanderKwast looking forward to the PCRaster tutorial. Did that get generated yet by chance?

  • @josephrojaszamora9601
    @josephrojaszamora9601 3 года назад +2

    Hello Hans, great method but I have a problem when I try to rasterize the rivers as the Error shows: Attempt to create 0x0 dataset is illegal, sizes must be larger than zero. I tried changing the pixel length but still the same issue, what should I do to overcome this problem?

    • @Zoe-kw6we
      @Zoe-kw6we 2 года назад

      Have you solved it? I'm having the same issue!

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

      @@Zoe-kw6we Hey, no I could not, I ended up using arcgis to rasterize the rivers and export it as a shape and following the resto of the process on qgis

    • @Zoe-kw6we
      @Zoe-kw6we 2 года назад

      @@josephrojaszamora9601 Thanks for your reply! I hope I find a way to work it out as well

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

    Dear Hans, I am deeply grateful for all the teaching you have done on QGIS. It has been a huge part of my learning!. The last step in which you multiply the burned standardized DEM with the original DEM would seem to introduce a non-linearity in the DEM values, and not give back the original DEM values outside the river burned pixels..
    if stdBurnedDEM = (DEM - base)/(top - base)
    then multiplying DEM*stdBurnedDEM gives (DEM*DEM - DEM*base) / (top - base).
    Instead, as the final scaling step, why not apply the inverse of the scaling that was used to create the stdDEM? i.e.,
    Final Full Range burned DEM = stdBurnedDEM*(top - base) + base.

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

      Dear Keith. Good point. I'll check it and get back to you.

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

      @@HansvanderKwast did you check it?

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

      I think this step should be rechecked. I find erroneous negative elevation values while simply multiplying the standardized burner dem with the original dem.

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

      Any advice on this step?

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

      Agree. I think that step is incorrect. In the original paper they've used the relative DEM directly to derive the flow direction.

  • @yoaslauren8085
    @yoaslauren8085 7 месяцев назад

    Thank you for the video. Can we burn the stream into DEM using PCRaster in Python? Do you have references about it if we can do it?

    • @HansvanderKwast
      @HansvanderKwast  7 месяцев назад

      Check some examples in the Resource Sharing repository: github.com/jvdkwast/qgisrepository/tree/main/collections/qgis_pcrasteruserscripts/processing

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

    Thanks for the video. Why is there a need to go through the std dtm step? Why not just subtract a set value for river depth from the raw dtm? Thanks.

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

      According to the original publication of this algorithm this is done to "maintain the lowest neighbour relation between cells except for those cells where one neighbour is in the river network and the other one is not."

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

      @@HansvanderKwast thanks for your response. There seems to be a lot of good content on the channel. I will check it out!

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

    Hello, I'm using the carve function but the output raster generates no data values in the last section of the river. I've played with the parameters but always end up getting the same no data pixels. That region is a valley, and because of that the river has no define "axis" and it's surrounded by lots of swamps. I don't know if I'm getting this no value pixels because of the flatness of that zone. Do you know the reason for this? thank you very much in advance, I hope you can help me.

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

      Not sure what the problem is. You can also try this method: ruclips.net/video/jHT_StPb_oM/видео.html

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

    How to do this in ArcGIS ?

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

    I burned an NDVI image to the DEM, which resulted in negative values ​​for the corrected DEM.

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

      Interesting. Why would you burn NDVI in a DEM? Also negative elevation is normal where I live below sea level.

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

      MNDWI image.

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

      @@HansvanderKwast The corrected DEM range is not the same as the original.
      There should be a problem in the step of generating demBurn. The Mndwi image is subtracted from stdDEM. Although the purpose of burning is achieved, this step leads to a different range of corrected DEM. Is there any good solution?

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

    Can I burn raster images to DEM, such as MNDWI images?

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

      You can use the same approach as in the video to burn any raster in then DEM.

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

    Niice one

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

    Dear sir, can we also burn road network in dem by this method? Thanks

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

      With this method you can burn anything in your DEM.

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

      @@HansvanderKwast Dear sir, one more question, i saw you use rive line to burn in dem. why you not use river in polygon to burn because it can also identify the width of river? Thanks

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

      Sure. That's better in case you have a polygon.

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

      @@HansvanderKwast sir, one more, we fill sink just for delineate watershed? how about we use it for hydraulic simulation like flood modelling in hec ras, we need to fill sinks for dem or no need? Thanks

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

      For hydrological applications with water flow you need to fill the sinks, otherwise the water will not reach the outlet. Both artifacts and real sinks will be removed, so take into account that if you need the real depressions to stay in you elevation model.