Questions tagged [grass]

GRASS GIS, commonly referred to as GRASS (Geographic Resources Analysis Support System), is a free and open source Geographic Information System (GIS) software suite used for geospatial data management and analysis, image processing, graphics and maps production, spatial modeling, and visualization.

GRASS GIS, commonly referred to as GRASS (Geographic Resources Analysis Support System), is a free and open source Geographic Information System (GIS) software suite used for geospatial data management and analysis, image processing, graphics and maps production, spatial modeling, and visualization. GRASS GIS is currently used in academic and commercial settings around the world, as well as by many governmental agencies and environmental consulting companies. It is a founding member of the Open Source Geospatial Foundation (OSGeo).

http://grass.osgeo.org/

84 questions
0
votes
0 answers

Can't run GRASS addon r.skyview from Python script (grass 7.8, python 3.9, win10)

I want to run the GRASS addon r.skyview from an external Python script. I have managed to run other GRASS commands, such as r.horizon (see code below), import os import sys import…
0
votes
2 answers

How to calculate unnested watersheds in GRASS GIS?

I am running into a few issues using the GRASS GIS module r.accumulate while running it in Python. I use the module to calculate sub watersheds for over 7000 measurement points. Unfortunately, the output of the algorithm is nested. So all sub…
0
votes
0 answers

How can I find the points of intersection between two vector shapefiles?

I have two vector shapefiles (polylines), and I want to find all the points where they intersect. I want to produce a set of points where the intersections occur. If it helps, the context here is that I am trying to find locations where a satellite…
0
votes
0 answers

RuntimeError: Cannot find GRASS GIS start script: C:/Program Files/GRASS GIS 7.8, set the right one using the GRASSBIN environm. variable

I try to use GRASSGIS via Python3. But when I import grass_session, Python gives out an error message: "RuntimeError: Cannot find GRASS GIS start script: C:/Program Files/GRASS GIS 7.8, set the right one using the GRASSBIN environm. variable" Here's…
0
votes
1 answer

Install GRASS GIS and use it with python in Linux machines?

Is there a bash script to install GRASS GIS and use it with python in Linux machines?
gcamargo
  • 3,683
  • 4
  • 22
  • 34
0
votes
0 answers

GRASS GIS MASK map statistics is NaN

This is the first time I am using GRASS GIS. I would very much appreciate help. I am using python, grass scripts, GRASS version 7.8.6. I tried to debug as much as possible and I think the problem is in MASK creation. It is not behaving as expected.…
SDH
  • 11
  • 2
0
votes
1 answer

GRASS GIS: Error while executing r.resamp.filter

I want to resample a raster from 15m to 460m using a Gaussian filter. The goal I am having a coarse image which I want to downscale. I also have a fine resolution band to assist the downscaling. The downscaling method I am using is called…
Nikos
  • 426
  • 2
  • 10
0
votes
0 answers

Updated instructions to install Grass Gis on Cygwin

Just testing the latest version of Cygwin and found that Grass Gis is not part of it. I found some old links (eg. from 2018) giving instructions to install it but I was wondering if there are updated instructions. Any hints are welcomed.
Gery
  • 8,390
  • 3
  • 22
  • 39
0
votes
1 answer

Create points where vector lines from two maps intersect

I have two vector maps, one showing a single polygon (land), and the other multiple vector lines (rivers. I'm trying to create a map of points that indicates where the river vector lines intersect geographically with the land edge. I need a points…
0
votes
1 answer

ModuleNotFoundError: No module named 'grass' | GRASS GIS | PYTHON3 | CENTOS 7

I want to run grass78 on an amazon-linux machine, with centOS, no GUI. By great difficulty, I was able to install GRASS78 (the latest stable release from https://grass.osgeo.org/download/). When I run the below command (after setting GRASS_GUI env…
Ayush Chauhan
  • 37
  • 1
  • 7
0
votes
1 answer

Is there an R equivalent of GRASS GIS's r.neighbors range?

A couple of thousand DEM geotiffs are erroring out in QGIS GRASS r.neighbors function using these parameters GRASS r.neighbors neighborhood operation=range, neighborhood size=3 with the following error :- 2021-04-23T15:51:51 WARNING Duplicate…
Rose
  • 205
  • 3
  • 12
0
votes
0 answers

How to run parallel GRASS GIS mapsets from R using rgrass7 in a drake/targets pipeline?

I want to parallelize my GRASS GIS analysis and calculations using the package rgrass7 from within a targets pipeline. As I am a newbie to GRASS, I am not sure how to correctly set up multiple mapsets in the same GRASSGIS database. So far I tried…
MxNl
  • 371
  • 2
  • 9
0
votes
1 answer

Dissolving lines in SF

Is there any way to dissolve lines by a certain column in SF? This is such an easy task in QGIS or ArcGIS. I have tried the code below but it creates both linestring and multilinestring types. I want to get this down to the writeVECT step from…
ecology
  • 606
  • 3
  • 9
  • 29
0
votes
3 answers

convert a set of coordinates from string to int

How do I convert my siteData which is a list of coordinates from string to int? print(siteData) cat|x|y|z 1|343741.396330097|1029255.04807763|0 2|342270.660062496|1030198.57861216|0 3|339743.874252208|1030705.47801259|0 …
0
votes
1 answer

grass.script + scipy theilsen regression slope and intercept between values of two rasters

I need to compute TheilSen regression slope and intercept between values of two rasters in a GRASS GIS python script. The two rasters in this example (xtile and ytile) are both of the same dimensions 250x250 pixels and contain nodata (null)…
Tomas_IV
  • 101
  • 2