Interpolate points to rasters with kriging in QGIS using the Smart-Map plugin

Поділитися
Вставка
  • Опубліковано 29 кві 2021
  • This video demonstrates how to interpolate points to raster with kriging. We'll use the experimental Smart-Map plugin: github.com/gustavowillam/Smar...

КОМЕНТАРІ • 40

  • @teamshare7558
    @teamshare7558 11 місяців тому +1

    Thanks for sharing. Short video but powerful!

  • @azzeddinereghais7494
    @azzeddinereghais7494 3 роки тому

    A lot thanks Pro; I hope will be later the courses by Creating algorithms with R for QGIS.

  • @dzulfansyah09
    @dzulfansyah09 3 роки тому

    Thanks for sharing..very useful👍👍

  • @harrybarcia3177
    @harrybarcia3177 2 роки тому

    Great content, thank you :)

  • @serhatkoroglu6708
    @serhatkoroglu6708 Рік тому

    that's great!

  • @vijayal.pusuluri3715
    @vijayal.pusuluri3715 2 роки тому

    Hi, I am mapping road accident spots in QGIS and created heat maps. Now I want to compare kriging method for validation. Is this the right plugin to use?

  • @muhammadharissiddiqui3230
    @muhammadharissiddiqui3230 2 роки тому

    Hi, Thank you for the video.
    I am doing interpolation of rain gauge stations having annual average rainfall. I want to use elevation as an external variable. Is there any way in QGIS to do that?

    • @HansvanderKwast
      @HansvanderKwast  2 роки тому +1

      Co-kriging is not easily possible in QGIS as far as I know. Better to use R for these kind of interpolations or add your R script to QGIS with the R processing provider plugin.

  • @augustbjerken1375
    @augustbjerken1375 3 роки тому

    Hi Hans,
    First and foremost, thanks for the video. I've already had great success using the Smart-Map plugin along with many other QGIS-functions surrounding catchment modelling, and it is all down to your excellent walk throughs.
    One question that has emerged though is how to handle NULL values when working with the Smart-Map plugin? I've lately been working on some long precipitation datasets, where occasionally some stations lack a value. This creates a problem, I keep getting the following error message when importing the layer: "ValueError: range() arg 3 must not be zero".
    While the plugin is clearly identifying the missing values, I don't know to approach this? Is the something obvious that I'm not seeing?
    Kind regrads and once again, thanks for your excellent videos!
    // August Bjerkén

    • @HansvanderKwast
      @HansvanderKwast  3 роки тому +1

      Hi August. Great that the videos are useful!
      I've not encountered that problem yet. Maybe you can post the issue on the GitHub page of the plugin, so the developer can respond. If you find a solution, please post it back here too. Here's the link to the GitHub page of the plugin: github.com/gustavowillam/SmartMapPlugin.

    • @augustbjerken1375
      @augustbjerken1375 3 роки тому

      @@HansvanderKwast Ok, I see!
      Well, I'll have a look at it and see if there's something that need to be adjusted. I'll keep you posted here in case I stumble across any solution.
      Thanks for the quick reply!
      //August Bjerkén

  • @marikaaspland7370
    @marikaaspland7370 2 роки тому

    nightmare - Hans, love your work but I am not savvy enough to work around version incompatibility with the python3 environment and pip versions - so my install fell over. - py3_env not recognised even tho python3 was installed. :( Marika

  • @spvogue100
    @spvogue100 3 роки тому

    Thanks Hans. I wonder, if i have more than one z value at same coordinates and i want to mapping all values, is it possible to mapping to automaticly with using IDW, of course all legend will be different. And in atlas feature i want to see all different z values map.

    • @spvogue100
      @spvogue100 3 роки тому

      may be qgis developers create a plugin for this

    • @HansvanderKwast
      @HansvanderKwast  3 роки тому +1

      With IDW or Nearest Neighbour (Thiessen) interpolation you need a unique value at a location, that's simply how the method works. If you have multiple points at exactly the same location you need to take the average, max, min, etc. first before applying the interpolation. The kriging method explained in this video can deal with multiple Z values at the same location, because the method uses the semi-variogram fit through the points at lag distances.

  • @abbasnajmi6196
    @abbasnajmi6196 3 роки тому

    Hi hans,
    Thanks for the video. Could you please tell me how we can add multiple z values at the same location in smart map plugin?

    • @HansvanderKwast
      @HansvanderKwast  3 роки тому

      It will construct the semivariogram based on all points in your points layer. So if there are points with different values at the same location it will take that into account to calculate the semivariance. Did you try it already?

    • @abbasnajmi6196
      @abbasnajmi6196 3 роки тому

      @@HansvanderKwast
      Thank you for your response.
      I have two columns that I need to interpolate to generate a single map, but we can just import only one column from the point layer for kriging, right?
      So like this, I will get two different maps instead of one.

    • @HansvanderKwast
      @HansvanderKwast  3 роки тому

      @@abbasnajmi6196 Yes, but you can have 2 or more rows at the same location. For a shapefile it doesn't matter. Not sure how the plugin deals with it.

  • @urszulazawadzka-pawlewska4056

    Are there any specific requirements for the attribute that will be interpolated? I have the layer with integer values and the Smart-Map doesn't see the Z (I can't select anything, as I don't see there any attribute to choose).

    • @HansvanderKwast
      @HansvanderKwast  Рік тому

      I think you need to have a field with decimal numbers.

    • @urszulazawadzka-pawlewska4056
      @urszulazawadzka-pawlewska4056 Рік тому

      I've found layer with decimals (Real) and it is still not working (plugin sees the layer, but doesn't see any variables that it can interpolate) :(.

    • @HansvanderKwast
      @HansvanderKwast  Рік тому +1

      @@urszulazawadzka-pawlewska4056 Please file the issue at the GitHub repository of the developers of the plugin: github.com/gustavowillam/SmartMapPlugin

    • @urszulazawadzka-pawlewska4056
      @urszulazawadzka-pawlewska4056 Рік тому

      @@HansvanderKwast I've wrote there, but for now I mainly have support from other users (writing that they have simmilar problem). I used the plugin on osgeo4w on Windows and it worked. I have maybe strange question but how to mimic the OSGeo4W on linux, maybe there are some problems with dependencies when I install everything sepparately.

  • @schneis
    @schneis 10 місяців тому

    I tried to install the plugin using QGIS 3.28.11 and python version 3.9.5. The installation of C:\Users\schneis>python -m pip install scikit-learn was succesful but I still get an error "AttributeError: module 'numpy' has no attribute 'float'" after installation of the plugin.

    • @HansvanderKwast
      @HansvanderKwast  10 місяців тому

      Please get in touch with the developers and file an issue at github.com/gustavowillam/SmartMapPlugin

  • @drorigudes8428
    @drorigudes8428 2 роки тому

    Yes, I was also getting errors despite following installation steps

    • @HansvanderKwast
      @HansvanderKwast  2 роки тому +1

      File an issue at the GitHub page or get in touch with the developers: github.com/gustavowillam/SmartMapPlugin

  • @muharifromadlon3993
    @muharifromadlon3993 2 роки тому +1

    unable to get setup.ini from webs :(

    • @vash05
      @vash05 Рік тому

      I encountered the same problem. Have you solved this one?

  • @Trujimap
    @Trujimap 2 роки тому

    it requires 64 bit, I´m still in the underworld of the 32 bit

  • @simoncool1209
    @simoncool1209 3 роки тому

    Hi Hans, thanks for the video, I see that the number of points is limited to 1000, would that be extended in the final plugin?

    • @HansvanderKwast
      @HansvanderKwast  3 роки тому

      Hi Simom. The developers have chosen the limit of 1000 points because of their interest in precision agriculture. They could change that, but not sure if it's in the next version. Also check this video from the developers: ua-cam.com/video/dzDDNxnwVkI/v-deo.html

  • @azmatraja5767
    @azmatraja5767 3 роки тому

    why i am getting this error
    ValueError: range() arg 3 must not be zero

    • @nsn242
      @nsn242 3 роки тому

      I'm also getting this error. Running QGIS 3.16.
      Any solution?

    • @azmatraja5767
      @azmatraja5767 3 роки тому +1

      @@nsn242 USE IDW INTERPOLATION

    • @ayskriim
      @ayskriim 2 роки тому

      I'm also getting the same error. Running 3.22

  • @danielpovedamartinez4170
    @danielpovedamartinez4170 2 роки тому

    Another error with other variables (Genetic_diversity) that I had is: IndexError: list index out of range
    Traceback (most recent call last):
    File "/home/daniel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/Smart_Map/Smart_Map.py", line 3693, in pushButton_Krigagem_clicked
    self.export_raster_to_qgis(Input_Table, Output_Layer_File_tiff, Output_Layer_Name, z_field)
    File "/home/daniel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/Smart_Map/Smart_Map.py", line 7957, in export_raster_to_qgis
    crs = crs[1] #segundo elemento da lista: '32723'
    IndexError: list index out of range,
    DO you know what cause this error?

    • @HansvanderKwast
      @HansvanderKwast  2 роки тому +1

      Please check with the developers: github.com/gustavowillam/SmartMapPlugin