[GRASS-user] v.surf.idw Not Working

Micha Silver tsvibar at gmail.com
Fri Feb 12 12:06:31 PST 2021


I tried with your shapefile, and got no errors. Here are the steps...
First I created a new GRASS location matching the CRS of the shapefile:

grass -c Coal-Test-Shapefile-main/coal_test.shp
/home/micha/GIS/grass/michaela

Check the projection:

g.proj -p
-PROJ_INFO-------------------------------------------------
name       : RD/83 / 3-degree Gauss-Kruger zone 5
ellps      : bessel
proj       : tmerc
lat_0      : 0
lon_0      : 15
k          : 1
x_0        : 5500000
y_0        : 0
no_defs    : defined
-PROJ_EPSG-------------------------------------------------
epsg       : 3399
-PROJ_UNITS------------------------------------------------
unit       : meter
units      : meters
meters     : 1

Then I imported your shapefile, and *set the computational region*:

v.import Coal-Test-Shapefile-main/coal_test.shp output=coal_test
g.region -ap vect=coal_test  # Resolution is 1 meter, 1500x1500 pixels

Now run the IDW module
v.surf.idw input=coal colu=dbl_1 out=coal_idw_1
81 points loaded
Interpolating raster map <coal_idw_1> (1500 rows, 1500 columns)...
 100%
v.surf.idw complete.

Resulting image is attached. You can try other options to v.surf.idw to get
a smoother interpolation, if necessary.
HTH


On Fri, Feb 12, 2021 at 8:35 PM Michaela Lobato <amlobat2 at illinois.edu>
wrote:

> Hi Markus,
>
> Here is the information:
>
> v.info -c map=coal_test at PERMANENT
>
> INTEGER|cat
> INTEGER|cat_
> INTEGER|int_1
> INTEGER|int_2
> DOUBLE PRECISION|dbl_1
> DOUBLE PRECISION|dbl_2
> DOUBLE PRECISION|dbl_3
> DOUBLE PRECISION|dbl_4
> DOUBLE PRECISION|dbl_5
> Displaying column types/names for database connection of layer <1>:
>
>
> v.info -t map=coal_test at PERMANENT
>
> nodes=0
> points=96
> lines=0
> boundaries=0
> centroids=0
> areas=0
> islands=0
> primitives=96
> map3d=0
>
> You can also find the file here
> https://github.com/amlobat2/Coal-Test-Shapefile.  Let me know if you need
> any additional information.
>
> Best,
> Michaela
>
>
> On Fri, Feb 12, 2021 at 3:29 AM Markus Neteler <neteler at osgeo.org> wrote:
>
>> Hi Michaela,
>>
>> On Thu, Feb 11, 2021 at 11:47 PM Michaela Lobato <amlobat2 at illinois.edu>
>> wrote:
>> >
>> > Hello,
>> >
>> > I have recently been struggling with an issue in GRASS. I am a new
>> GRASS user and recently downloaded version 7.8.5 for my MacBook (macOS
>> Catalina).  I converted this sample dataset to a shapefile.
>>
>> Could you make this shapefile available? Or post the data structure?
>>
>> # attribute table  structure
>> v.info -c coal_test
>>
>> # vector types
>> v.info -t coal_test
>>
>> ?
>>
>> Best,
>> Markus
>>
>
>
> --
> A. Michaela Lobato
> BS Systems Engineering and Design | Autonomous Systems and Robotics |
> December 2019
> MS Systems and Entrepreneurial Engineering | Decision and Control | In
> Progress
> Email: amlobat2 at illinois.edu | Cell: (815) 494-1111
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>


-- 
Micha Silver
Ben Gurion Univ
Sde-Boker Remote Sensing Lab
cell: +972 (52) 3665918
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20210212/cdc2a669/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coal_idw_1.png
Type: image/png
Size: 78818 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20210212/cdc2a669/attachment-0001.png>


More information about the grass-user mailing list