Questions tagged [grass-7.0]
when GRASS 7.0 is the version you are using from the GRASS platform
142
questions
0
votes
1
answer
60
views
v.clean (GRASS) creates additional features
I am working with a large road dataset (approx. 1 million features) with a high number of overshoots and dangles.
To address the overshoots and dangles, I am using the v.clean tools (break, snap, ...
0
votes
0
answers
15
views
Digitise Fracture Network issue- NetworkGt
I am trying to run digitise fracture network tool but i am facing this problem:
Error: Algorithm grass7:r.to.vec not found
What should I do?
1
vote
1
answer
194
views
How create voxel 3d (x,y,z,attribute) in GRASS GIS from CSV file
I have a csv file with (x,y,z,attribute) x,y,z,attribute are float value, and I want to do a voxel 3D in Grass Gis, the documentation and examples are poor, so please I need some help.
I am using ...
2
votes
0
answers
214
views
Problems with python GRASS module setup outside GRASS
I currently have GRASS version 78 installed with my OSGEO4W. I am trying to utilize the boilerplate instructions here to call the GRASS module in my python script outside of the GRASS console (ie in ...
1
vote
1
answer
255
views
What am I doing wrong with v.clean in QGIS 3.22 LTR?
I am trying to use v.clean to fix small overlaps and gaps in a polygon dataset. However, I always get an empty output. What am I doing wrong? I've tried different thresholds but the result is always ...
0
votes
1
answer
24
views
Working iteratively on GRASS in R environment
I would like to realize a bicubic spline for many shapefiles. Following the indications on this post,enter link description here I obtained my results and export it from GRASS to folder.
Now, I would ...
0
votes
0
answers
220
views
GDAL raster with python error: 'NoneType' when I use gdal.Warp
I'm trying to 'north-up' a georeferenced raster in a python environment, this is the code:
from osgeo import gdal
import numpy as np
import matplotlib.pyplot as plt
ds = gdal.Open(r"DJI_0895.TIF&...
3
votes
1
answer
64
views
Field name for stats to be calculated not appearing using v.vect.stats
I'm trying to calculate the average value for an attribute of a set of points that fall within a set of polygons using v.vect.stats from GRASS. I've checked the attribute table of the point layer ...
2
votes
1
answer
433
views
Denoise/smooth DEM in GRASS GIS using r.denoise addon
I'm trying to denoise/smooth a digital elevation model (TIFF) file on GRASS GIS using r.denoise add-on. I cannot get it to work.
I don't know what to enter in the output box, my goal is to create a ...
0
votes
1
answer
394
views
Grass v.Centerline installation with "No Metadata Available" error
I have Grass 7.8.5 installed and I am trying install the v.centerline extension. I just get a warning with the following, and I see it hasn't installed when going to the Manage Extensions tool.
(Mon ...
1
vote
1
answer
322
views
r.sun GRASS GIS .. calculate sunhours for a specific coordinate pair
I am wondering if I can calculate the sunhours for a specific coordinate pair with r.sun on GRASS GIS. I want to give a coordinate pair as input and calculate how many sunhours there are on a specific ...
0
votes
1
answer
76
views
r.green error installation on GRASS
I am using GRASS GIS 7.0.3 on linux, however I've been trying to install the r.green extension on GRASS and always get the error message:
"ImportError: cannot import name set_path"
"...
2
votes
1
answer
386
views
Getting the 'memory:' layers after grass7:v.clean processing using PyQGIS?
To repair geometries errors, I'm now trying processing (grass7) using PyQGIS.
For one polygon layer (QgsVectorLayer: 'hn_pg'), I wrote the below script and run the grass7:v.clean algorithm. The ...
2
votes
0
answers
64
views
Points of drillhole data to 3D lines in GRASS
In GRASS 7.0 I have a 3D vector file which are several SPT drill holes, with the NSPT values at each interval.
I was able to export these points to Paraview through "v.out.vtk -cn input = nspt_3D type ...
1
vote
1
answer
169
views
d.rast.edit not yet implemented in the WxGUI
Am using GRASS to modify a raster and tried using d.rast.edit but am getting the following error when using it in the WxGUI
Command 'd.rast.edit' not yet implemented in the WxGUI. Try adding it as a ...
2
votes
0
answers
211
views
Unable to make use r.drain
I want to calculate a cost distance model between a source of raw material and a group of sites. Raster and vector data are in the same CRS (EPSG 32615). I was able to use r.walk and get my cost and ...
1
vote
1
answer
163
views
Adding GRASS module to QGIS 2.18.21
I did a module in grass wich I called r.out.haralickFeatures.py. I did a .qgm. I can't get the parameters rigth.
#!/usr/bin/env python
#%module
#% description: Compute asm, contrast, var, idm and ...
0
votes
1
answer
104
views
Entry point not found Error initiating GRASS GIS from Python
I cannot run any GRASS tools from within Python 2.7.15. While the GRASS environment, grass.script etc. are loading correctly and I can run basic checks like
gscript.read_command('g.gisenv')
gscript....
1
vote
1
answer
45
views
Why doesn't wx graphical modeler Grass gis 7 work properly in Spanish?
I am working with the wx graphical modeler in grass gis 7.
When I try to use a variable call "archivo" in spanish, wich is "file" in english, it does not work. The variable dont let me choose a file.
...
1
vote
1
answer
383
views
correlation matrix and p-value in grass
I'd like to know if there is a way to obtain statistical significance and p-value for correlation coefficients calculated for different raster in grass with the command r.covar
All that I obtain is ...
1
vote
1
answer
820
views
GRASS 7.4.1 in QGIS 2.18
I am a new user to QGIS and GRASS.
I want to use v.centerline so I opened GRASS as administrator on Windows 10 and I went to the gui of g.extension and successfully installed v.centerline.
I opened ...
2
votes
0
answers
3k
views
remove/fill gaps inside polygon qgis
I have created a polygon from grass gis and found small triangle like structure inside the polygon (sometimes at the edge to outside), that I want to remove/fill. I tried with geometry check to fix ...
2
votes
0
answers
119
views
Can't get GRASS 7 V.kernel.vector to work on QGIS 2.18.14
I have reinstalled GRASS multiple times, with all of the necessary listed programmes to install beforehand (e.g. GDAL), and it won't work.
The error comes up - GRASS was not found in '/Users/Shared/...
2
votes
1
answer
589
views
Copying Grass data from one location to another in Grass GIS
I have created several Grass locations with single mapsets while processing a series of satellite imageries at different stages of my analysis.
Now I need to copy some preprocessed rasters and ...
3
votes
0
answers
260
views
r.stream.basin in qgis
I am trying to generate subbasin with provided multiple outlets points by using r.stream.basin. I have install r.stream.basin addon in grass but it does not appear in qgis. Is there any ways to use ...
3
votes
0
answers
72
views
GRASS GIS Error Flags
I am attempting to run a GRASS command from the terminal and eventually a bash script, in which it links rasters in a folder to the Mapset previously defined. I was able to successfully create the ...
6
votes
1
answer
1k
views
Unable to run v.clean in QGIS 3.0.1 in Python console
I am trying to use v.clean algorithm in QGIS 3 python console. Code is as follows.
lyr = iface.activeLayer()
new_layer = lyr.materialize(QgsFeatureRequest().setFilterFids(lyr....
1
vote
0
answers
211
views
Adding 3rd party grass script into qgis processing toolbox on Mac? [closed]
I am trying to integrate this script http://www.mergili.at/randomwalk.php into QGIS on Mac, but I am having a few problems.
I have already seen How to add my own GRASS algorithms to Processing?
But ...
5
votes
0
answers
101
views
How to determine Kc value and apply it to r.sun?
As outlined in this link ( r.sun delievering unrealistic Values ) to get realistic values of kilowatt / meter-2, you must multiply the results by a "clear sky factor (Kc)". The link comments recommend ...
3
votes
2
answers
204
views
GRASS 7 tools in QGIS results in EPSG:3397 (PD/83 GK4) instead of 31468 (DHDN GK4) causing dislocation
GRASS 7 tools used from QGIS produce a result in a projection differing from the input projection which might lead to inconsistences:
Example v.net.connect, input EPSG of both layers is 31468 (DHDN ...
0
votes
1
answer
552
views
Fuzzify Slope Values
For a suitability analysis I need to define the suitability of slope from DEM values (in %) to build new trails.
Knowledges says that flat and rather steep areas are not suitable due to water runoff. ...
3
votes
1
answer
726
views
Correctly import .tif files in GRASS GIS
I am trying to import a GeoTiff (.tif) into GRASS GIS. I then want it to show up in the map display.
This is the data I want to use: http://ghsl.jrc.ec.europa.eu/ghs_pop.php
As far as I can tell, ...
1
vote
0
answers
53
views
How to interpret v.kernel network results
v.kernel "Optionally generates a vector density map on a vector network."
I have done this for a network, but I don't understand how to interpret the output of this. Can anyone explain this? I am ...
2
votes
1
answer
58
views
Issue with GRASS i.tasscap
I'm trying to carry out Tasseled Cap Transformations in GRASS GIS. I have a Landsat 8 image with bands 2-7 that are needed for the calculation. I have imported the bands into GRASS and attempted to ...
3
votes
0
answers
590
views
How to properly calculate annual irradiance using QGIS
I want to calculate annual irradiance for a couple of buildings to establish how much PV energy can be potentially harvested.
Which algorithm You recommend for this purpose: "r.sun" from GRASS ...
0
votes
1
answer
140
views
standalone script using grass7:v.clean gives erro
I am writing a standalone script using QGIS processing plugins. everything works but after adding a new command it gives me some errors. The command is as folloing:
processing.runalg("grass7:v.clean",...
1
vote
1
answer
284
views
GrassGIS process for DTM of UAV point cloud [duplicate]
Using grassGIS I am attempting to produce a DTM (remove buildings and vegetation) from the las point cloud. Unfortunately the point cloud exported from dronedeploy.com does not distinguish first and ...
1
vote
0
answers
271
views
How to use GRASS command "r.stream.distance" in Qgis 2.16.2?
I like to figure out the distance from each cell to the outlet along the flow path.
Maybe you can suggest some other opportunities/commands to solve my problem.
It would be nice, if someone can help ...
1
vote
1
answer
261
views
Setting variable from input map in GRASS python script?
I'm currently working on a GRASS script that takes maps from user input and computes them into a mapcalc expression. The issue i'm stucked with that when i ask for the map i can't set a variable name ...
4
votes
2
answers
1k
views
How to restore a scarp surface grid to calculate material loss
I would like to calculate the volume of material lost from a scarp like the one shown in the following image:
Is there a way to do these calculations with open-source software such as GMT, QGIS and ...
2
votes
0
answers
397
views
Using SAGA and GRASS on macOS Sierra?
I am trying to run QGIS 2.18.13 on Mac OS Sierra (10.12.4), but I'm having problems with SAGA and GRASS, at least from processing.
Here's what I did:
Installed QGIS from brew, but ended up having ...
1
vote
1
answer
237
views
GRASS 7.2.1 r.denoise/mdenoise error Windows 10
So I am trying to use the r.denoise add on in GRASS 7.2.1 to remove noise from a .dem elevation model.
Initially when running the add on I received the error:
ERROR: mdenoise required. Follow ...
1
vote
1
answer
280
views
R.reclass Permission denied [closed]
I'm writing a script to treat some rasters. One of steps is a reclassification. So I use r.reclass from Grass. But unfortunately, it return a weird error message: IOError: [Errno 13] Permission denied:...
1
vote
0
answers
133
views
r.out.xyz not working
I've got QGIS 2.8.1 - Wien on my system and often use the Grass tool r.out.xyz. Two of my colleagues have recently installed QGIS 2.18.12, which shows both Grass and Grass7 processing tools. Grass7 ...
1
vote
2
answers
90
views
Use GRASS digitiser tools in QGIS
I have QGIS with GRASS 7. I'm looking for the old style GRASS digitising tools.
Previously, when digitising boundaries, it was required to split any adjacent boundaries intended to be joined to. The ...
1
vote
1
answer
3k
views
rgrass7: Invalid number of 'breaks' for hist.default
So I just started to use the library rgrass7 from R and I got this error
Error in hist.default(v, main = main, plot = plot, ...) :
invalid number of 'breaks'
Or, using the summary function, I ...
0
votes
0
answers
85
views
Getting Error while installing grass extension
I want to install grass extension r.stream.order in my grass 7.But,while installing I am getting below error:
g.extension -s extension=r.stream.distance url=
Fetching ...
-3
votes
1
answer
127
views
GRASS executable in Shell with R
I was trying to write a shell script using GRASS commands and I realized that I wanted to use R commands in my code but I couldn't find a way to execute the Rscript using my results from the GRASS ...
0
votes
1
answer
34
views
Working with Shell script and GRASS
So reading this GRASS/Shell documentation I decided to test my own for repeat using this lines
CATS="(v.db.select -c map=training columns=cat)"
echo $CATS
for i in $CATS
do
where="cat = $CATS"
...
2
votes
0
answers
120
views
Can't Link grass to remote server postgis topology schema for import or export vector data
I have installed postgre/postgis on a remote server in which i want add topology data from Grass Gis to postgre topology schema.
Grass gis 7.2.1 is installed on another PC on the network which has ...