Questions tagged [grass-7.0]

when GRASS 7.0 is the version you are using from the GRASS platform

Filter by
Sorted by
Tagged with
1 vote
0 answers
19 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 ...
user avatar
  • 1,679
1 vote
1 answer
60 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 ...
user avatar
  • 1,444
0 votes
1 answer
18 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 ...
user avatar
  • 81
0 votes
0 answers
56 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&...
user avatar
3 votes
1 answer
39 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 ...
user avatar
  • 133
2 votes
1 answer
152 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 ...
user avatar
0 votes
1 answer
174 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 ...
user avatar
  • 73
1 vote
1 answer
157 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 ...
user avatar
0 votes
1 answer
58 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" "...
user avatar
2 votes
1 answer
323 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 ...
user avatar
  • 85
2 votes
0 answers
52 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 ...
user avatar
1 vote
1 answer
135 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 ...
user avatar
  • 584
2 votes
0 answers
177 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 ...
user avatar
1 vote
1 answer
155 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 ...
user avatar
0 votes
1 answer
86 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....
user avatar
1 vote
1 answer
42 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. ...
user avatar
1 vote
1 answer
295 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 ...
user avatar
  • 91
1 vote
1 answer
739 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 ...
user avatar
  • 111
2 votes
0 answers
2k 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 ...
user avatar
  • 167
2 votes
0 answers
97 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/...
user avatar
2 votes
1 answer
460 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 ...
user avatar
2 votes
0 answers
219 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 ...
user avatar
  • 167
2 votes
0 answers
57 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 ...
user avatar
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....
user avatar
  • 1,534
1 vote
0 answers
193 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 ...
user avatar
5 votes
0 answers
92 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 ...
user avatar
3 votes
2 answers
191 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 ...
user avatar
0 votes
1 answer
435 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. ...
user avatar
  • 345
3 votes
1 answer
584 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, ...
user avatar
1 vote
0 answers
48 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 ...
user avatar
2 votes
1 answer
41 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 ...
user avatar
  • 425
3 votes
0 answers
464 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 ...
user avatar
  • 413
0 votes
1 answer
139 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",...
user avatar
1 vote
1 answer
269 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 ...
user avatar
  • 217
1 vote
0 answers
248 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 ...
user avatar
  • 51
1 vote
1 answer
228 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 ...
user avatar
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 ...
user avatar
  • 2,022
2 votes
0 answers
370 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 ...
user avatar
  • 21
1 vote
1 answer
213 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 ...
user avatar
1 vote
1 answer
259 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:...
user avatar
  • 1,386
1 vote
0 answers
97 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 ...
user avatar
1 vote
2 answers
89 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 ...
user avatar
  • 38
1 vote
1 answer
2k 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 ...
user avatar
  • 439
0 votes
0 answers
77 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 ...
user avatar
-3 votes
1 answer
106 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 ...
user avatar
  • 439
0 votes
1 answer
26 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" ...
user avatar
  • 439
2 votes
0 answers
96 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 ...
user avatar
1 vote
2 answers
486 views

First time using i.segment.uspo in GRASS

I am using the module i.segment.uspo in GRASS for the first time and I wanted to know if anyone here haws experience with that add-on in GRASS so I can get some hints on how to use it more efficiently,...
user avatar
  • 439
0 votes
0 answers
375 views

How to activate GRASS 7 v2 in QGIS 2.18 on Mac

I have QGIS installed. I've ticked GRASS 7 in Plugins/Manage and Install plugins, but the Grass Tools options are all greyed out with No mapset is open reported. In the GRASS options the New Mapset ...
user avatar
  • 540
0 votes
1 answer
83 views

Problem with supervised classification (using GRASS) [duplicate]

So I was playing with supervised classification with GRASS. The first issue that I ran into was right after the first two steps of classification (v.to.rast and i.gensig) which was: unable to read ...
user avatar
  • 439