Re: [GRASS-user] Re: grass-user Digest, Vol 205, Issue 33

2023-05-25 Thread Stefan Blumentrath
Hi,If NOAA data is CF-convention-compliant data in NetCDF format, you may check out: https://grass.osgeo.org/grass82/manuals/addons//t.rast.import.netcdf.htmlAnd https://grass.osgeo.org/grass82/manuals/addons/m.crawl.thredds.htmlif the data is distributed via threads server...Cheers,StefanOn

Re: [GRASS-user] How to use g.extension in GRASS7.8

2023-01-09 Thread Stefan Blumentrath
Hei Bernardo, The problem is likely that the layout of the addon repo changed after 7.8.5, thus the path is not constructed correctly by g.extension in that version. A workaround could be to fetch the add on repo with git (git clone https://github.com/osgeo/grass-addons) And then point

Re: [GRASS-user] Export raster to PostGIS

2022-08-28 Thread Stefan Blumentrath
Hi Asim, You could try to use raster2pgsql after making sure you have the GDAL-GRASS plugin installed. Then you should be able to load GRASS GIS raster maps directly into PostGIS by pointing to the header of your GRASS GIS maps. Something like: raster2pgsql -s 4326 -C -l 2,4 -I -F -t 2700x2700

Re: [GRASS-user] Running r-grass examples when building a R package

2022-08-26 Thread Stefan Blumentrath
Hi Bernardo, Seems like GRASS GIS isn`t installed on the CI VM. Please see: https://github.com/NINAnor/oneimpact/pulls You may add UbuntuGIS PPAs if you want other versions than shipped by plain Ubuntu. Cheers Stefan From: grass-user On Behalf Of Bernardo Santos via grass-user Sent: fredag

Re: [GRASS-user] temporal raster accumulation

2022-08-09 Thread Stefan Blumentrath
Hi Ivan, A simple, quick-and-dirty approach could be: t.rast.algebra basename=rain5 expression="rain5=rain + rain[-1] + rain[-2] + rain[-3] + rain[-4] + rain[-5]" Temporal selection (start_date(rain)...) is probably more elegant... See:

Re: [GRASS-user] Using a script as a GRASS addon

2022-08-02 Thread Stefan Blumentrath
Hei Bernado, On Linux you make the script executable: chmod ugo+x path_to/r.ls.func_connectivity.py You can rename it to r.ls.func_connectivity if you want to get rid of the .py ending. Furthermore, the script should be located in directory that is part of your PATH environment variable. e.g.

Re: [GRASS-user] GRASS: Permission denied

2022-05-24 Thread Stefan Blumentrath
Hi Wolfgang, The OSGeo4W network installer (http://download.osgeo.org/osgeo4w/v2/osgeo4w-setup.exe) should provide you with the following GRASS GIS version (per 24.05.2022): GRASS GIS 7.8.7 (package "grass") GRASS GIS 8.0.2 (package "grass8") GRASS GIS 8.3.dev (package "grass-dev") You may

Re: [GRASS-user] GRASS GIS Unable to load GDAL library

2022-04-28 Thread Stefan Blumentrath
Hi Ming, Could you please try to install the “gdal-303-runtime” package (when you choose advanced install, it is in the libs section). If I am not mistaken, this is a glitch that should be fixed with the upcoming GRASS GIS 8.0.2 release. Cheers Stefan From: grass-user On Behalf Of ming han

Re: [GRASS-user] multiple

2022-04-27 Thread Stefan Blumentrath
2022 19:23 To: Stefan Blumentrath ; GRASS user list Subject: Re: [GRASS-user] multiple Hi Stephan, I'm not very used to v.overlay, but it seems to be used with area and not with lines crossing lines, isn't it ? Frank Le 27/04/2022 à 09:14, Stefan Blumentrath a écrit : Hi Frank, My

Re: [GRASS-user] multiple

2022-04-27 Thread Stefan Blumentrath
Hi Frank, My general approach would be like this: v.overay to intersect transects and lines v.to.points use=start to get transect start points v.distance to get distance from transect start point to point where lines cross With v.distance you need to try whether it is sufficient to compute

Re: [GRASS-user] standalone grass installer version 7.6

2022-04-25 Thread Stefan Blumentrath
Hi Bernado, Seems the download directory of older Windows Standalone installers is empty indeed: https://grass.osgeo.org/grass76/binary/mswindows/native/x86_64/ For Wndows you can get older packages with osgeo4w version 1: http://download.osgeo.org/osgeo4w/v1/osgeo4w-setup-x86_64-v1.exe There

Re: [GRASS-user] GRASS and Flatpak

2022-02-28 Thread Stefan Blumentrath
Hi Vassily, GRASS GIS seems to be included in the QGIS flatpack: org.qgis.qgis/org.qgis.qgis.json at master · flathub/org.qgis.qgis (github.com) Cheers Stefan From: grass-user On Behalf Of Vassily Poddubny Sent: mandag

Re: [GRASS-user] installing grass.jupyter

2022-02-02 Thread Stefan Blumentrath
7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=HDqcvUFnRRUhyoi8gT%2BoktXKkFWMMUTQ7BbTrlhwm20%3D=0> HTH, Vero El mar, 1 feb 2022 a las 17:58, Stefan Blumentrath (mailto:stefan.blumentr...@nina.no>>) escribió: Hi Laura, You would need a c

Re: [GRASS-user] installing grass.jupyter

2022-02-01 Thread Stefan Blumentrath
Hi Laura, You would need a current development version (GRASS GIS 8.1.dev). For MS Windows you can get it here: https://wingrass.fsv.cvut.cz/grass81/ On Linux you could clone the code and compile... Cheers Stefan From: grass-user On Behalf Of Laura Poggio Sent: tirsdag 1. februar 2022 17:45

Re: [GRASS-user] v.in.csv available?

2021-10-28 Thread Stefan Blumentrath
Hei Johannes, Sounds like v.in.csv is the right tool. The manual is build (https://grass.osgeo.org/grass78/manuals/addons/v.in.csv.html), also on MS Windows: https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/logs/ It should be available via g.extension. You would need GRASS 7.8.6 (or

Re: [GRASS-user] v.in.ascii column identifications

2021-10-01 Thread Stefan Blumentrath
Hi Rich, Please check your "separator" settings. Default is pipe |, but your data seems to be comma delimited. Cheers Stefan -Original Message- From: grass-user On Behalf Of Rich Shepard Sent: fredag 1. oktober 2021 18:07 To: grass-user@lists.osgeo.org Subject: [GRASS-user] v.in.ascii

Re: [GRASS-user] Searching EPSG database [RESOLVED]

2021-09-30 Thread Stefan Blumentrath
What about: https://grass.osgeo.org/grass78/manuals/addons/g.projpicker.html ? -Original Message- From: grass-user On Behalf Of Jeff McKenna Sent: torsdag 30. september 2021 05:21 To: grass-user@lists.osgeo.org Subject: Re: [GRASS-user] Searching EPSG database [RESOLVED] On 2021-09-29

Re: [GRASS-user] Error import from grass.pygrass.vector library

2021-08-24 Thread Stefan Blumentrath
library Attivato mar, 24 ago 2021 10:10:10 +0200 Stefan Blumentrath mailto:stefan.blumentr...@nina.no>> ha scritto Hm... Did you initialize the session, e.g. like: with Session(gisdb="/tmp", location="location", create_opts="EPSG:4326"): fro

Re: [GRASS-user] Error import from grass.pygrass.vector library

2021-08-24 Thread Stefan Blumentrath
mport the vector library after the session is loaded does not solve as far as I've tested. Cheers Manuele Attivato ven, 20 ago 2021 21:26:22 +0200 Stefan Blumentrath mailto:stefan.blumentr...@nina.no>> ha scritto Dear Manuele, For ctypes in pygrass, the C-libraries need to b

Re: [GRASS-user] Error import from grass.pygrass.vector library

2021-08-20 Thread Stefan Blumentrath
Dear Manuele, For ctypes in pygrass, the C-libraries need to be loaded explicitly. You could have a look here: https://github.com/zarch/grass-session/blob/6097f834be20ee0d703deb2af90f22d6dc66f368/grass_session/session.py#L332 to see how it can be done, or just use the grass_session python

Re: [GRASS-user] v.external, postgis materialized views and projection

2021-08-17 Thread Stefan Blumentrath
Hi Donovan, Did you try the suggestion from the error message to use the -o flag? That overwrites the projection check and should link the data assuming the projection of your GRASS mapset. Cheers Stefan From: grass-user On Behalf Of Donovan Cameron Sent: tirsdag 17. august 2021 07:06 To:

Re: [GRASS-user] Error with installing addons in Windows

2021-08-01 Thread Stefan Blumentrath
Hi Sajid, On Windows, addons are distributed as precompiled binaries for a specific version. 7.8.6 is just a release candidate, so there are no pre-compiled addons yet. With OSGeo4W Version 1, which you can get here: https://download.osgeo.org/osgeo4w/osgeo4w-setup-x86-v1.exe you can get GRASS

Re: [GRASS-user] Cannot read NetCDF with 'semi_major_axis' or 'inverse_flattening'

2021-07-24 Thread Stefan Blumentrath
Hei Ken, Did you try the -o flag ("Override projection check (use current location's projection) Assume that the dataset has same projection as the current location")? https://grass.osgeo.org/grass78/manuals/r.external.html As the error message suggests? If you are sure that projections in fact

Re: [GRASS-user] Extracting data from 4D or higher D (not 3D) NetCDF file

2021-06-03 Thread Stefan Blumentrath
Hei Ken, I am working on an import module for that right now, if the netCDF file follows the CF convention. I do have a prototype in a private git repo. Will invite you to test if you like... Hope I can publish it soon! Cheers Stefan -Original Message- From: grass-user On Behalf Of

Re: [GRASS-user] bayesian belief network analysis (was r.binfer)

2021-06-01 Thread Stefan Blumentrath
Hi Donovan, If you know how to put together some Python code, you could have a look at PyMC3: https://docs.pymc.io/ That can be basically used like scikit-learn in r.learn.ml. You load GRASS data into a numpy array with e.g. r.what, r.stats, v.db.select, or using pygrass (e.g. reading entire

Re: [GRASS-user] GRASS GIS 7.8.5 r.water.outlet

2021-05-19 Thread Stefan Blumentrath
Hi Kelesy, In addition to Michas very good suggestions you can try the table module in pygrass: https://grass.osgeo.org/grass78/manuals/libpython/pygrass.vector.html?highlight=table#module-pygrass.vector.table Or the db_select module from the scripting library:

Re: [GRASS-user] GRASS GIS 7.8.5 v.distance

2021-05-13 Thread Stefan Blumentrath
Hi Kelsey, Try: "from_" So, gs.run_command('v.distance', from_ = 'buildings', to = 'mappedStreams', The problem is indeed that from is a keyword... Cheers Stefan -Original Message- From: grass-user On Behalf Of Kelsey Wong Sent: torsdag 13. mai 2021 21:32 To:

Re: [GRASS-user] Orthorectification without GCPs

2021-04-16 Thread Stefan Blumentrath
Hei Dugal, g.gui.image2target generates the "CONTROL_POINTS" file (I guess in the folder of the image group). If you want to skip g.gui.image2target, you have to create that file a different way. Here is one possible way: Just create a random list of GCPs in g.gui.image2target to see how the

Re: [GRASS-user] KEYLINE; installing new module add-on (of 7.8) in GRASS 7.6

2021-03-09 Thread Stefan Blumentrath
C with ABS (ATAN (TAN (slope) * COS (aspect - raster_direction))) but unfortunately with an extra passage and without the possibility of defining calculation steps. Il giorno lun, 08/03/2021 alle 09.04 +, Stefan Blumentrath ha scritto: > Hm, maybe some fixes for g.extension should be ba

Re: [GRASS-user] KEYLINE; installing new module add-on (of 7.8) in GRASS 7.6

2021-03-08 Thread Stefan Blumentrath
/scripts/ Then make it executable: chmod u+x ~/.grass7/addons/scripts/r.slope.direction And it should work... Cheers Stefan -Original Message- From: Enrico Gabrielli bonushenricus Sent: mandag 8. mars 2021 09:44 To: Stefan Blumentrath ; grass-user@lists.osgeo.org Subject: Re: [GRASS-user

Re: [GRASS-user] KEYLINE; installing new module add-on (of 7.8) in GRASS 7.6

2021-03-08 Thread Stefan Blumentrath
Hi Enrico, GRASS 7.6 should not be a limiting factor. Did you try to install the addon through g.extension? g.extension extension=r.slope.direction operation=add If not, please try. If you did but get an error message, please provide the error message you got... Cheers Stefan -Original

Re: [GRASS-user] Library question

2021-02-27 Thread Stefan Blumentrath
Hi Rich, I think you also need LAPACK (liblapack-dev, not sure how that package is named on slackware). Cheers Stefan -Original Message- From: grass-user On Behalf Of Rich Shepard Sent: lørdag 27. februar 2021 15:27 To: grass-user@lists.osgeo.org Subject: [GRASS-user] Library

Re: [GRASS-user] v.rast.stats error: "Unable to seek"

2021-02-02 Thread Stefan Blumentrath
also report v.info PSU -c (to see data types of the columns)... Anyway, I guess here are people with C-knowledge required... Cheers Stefan -Original Message- From: Luís Moreira de Sousa Sent: tirsdag 2. februar 2021 15:56 To: Stefan Blumentrath Cc: Micha Silver ; GRASS user list

Re: [GRASS-user] Median filtering time series in time only

2021-02-01 Thread Stefan Blumentrath
Hei, Maybe a two-step approach with t.rast.aggregate and t.rast.mapcalc could work? In t.rast.aggregate you define the granularity as e.g. 48 days if you want to get a running median over three time steps of a 16 days time series. If you want to do it in one go (which would be understandable

Re: [GRASS-user] v.rast.stats error: "Unable to seek"

2021-02-01 Thread Stefan Blumentrath
Hi Luis, From the error message, it seems v.to.rast is failing, which may be due to a lack of resources - as Micha suggests. Can you try a) v.to.rast input=PSU output=test use=cat if that does not work, we at least know it is not v.rast.stats and we might get a more specific error message...

Re: [GRASS-user] Raster gaussian filter

2021-01-27 Thread Stefan Blumentrath
Hei Eric, Try r.neighbors. Cheers Stefan Get Outlook for Android From: grass-user on behalf of Eric Patton via grass-user Sent: Wednesday, January 27, 2021 3:59:15 PM To: grass-user Subject: [GRASS-user] Raster gaussian filter Hi

Re: [GRASS-user] [GRASS-dev] [GRASS GIS Elections 2020] Voting phase closed, presentation of results

2021-01-26 Thread Stefan Blumentrath
76 6. Moritz Lennert74 7. Vaclav Petras 68 8. Michael Barton58 9. Huidae Cho56 10. Helmut Kudrnovsky 55 11. Peter Löwe52 12. Māris Nartišs 47 13. Stefan Blumentrath44

[GRASS-user] PSC Election: Statement Stefan Blumentrath

2021-01-16 Thread Stefan Blumentrath
Dear GRASS GIS Community, I am honored to be nominated for the GRASS GIS PSC. Some of you may have read my name asking or answering questions on the user and developer mailing list. Fewer of you may have met me, e.g. at Community sprints in Bonn or video calls. For those of you who do not know

Re: [GRASS-user] Can't use simple GRASS modules in python when not using ".py" in module call

2021-01-15 Thread Stefan Blumentrath
Dear Camille, I don`t get that error in GRASS 7.8.3 with your example. Can you post the exact command (if it was different from your example), and GRASS version as well as OS? Addons need to be on your PATH / ADDON_PATH. Cheers Stefan From: grass-user On Behalf Of Cam Morlus Sent: fredag

Re: [GRASS-user] How to create a GRASS addon that returns something when using read_command()

2021-01-14 Thread Stefan Blumentrath
Hi Camille, Great resources to start with are: wenzeslaus/python-grass-addon: How to write a Python GRASS GIS 7 addon (github.com) and wenzeslaus/r.example.plus: An example of a GRASS GIS module for processing rasters

Re: [GRASS-user] TPI (terrain position index) in GRASS GIS

2020-10-08 Thread Stefan Blumentrath
Hi Brenado, TPI is rather simple and can be computed with r.neighbors + r.mapcalc: r.neighbors -c input=dem output=dem_avg_9 size=9 r.mapcalc expression=”TPI_9=dem-dem_avg_9” g.remove -f type=raster name=dem_avg_9 Cheers Stefan From: grass-user On Behalf Of Bernardo Santos Sent: torsdag 8.

Re: [GRASS-user] Classify basins as "narrow"

2020-09-03 Thread Stefan Blumentrath
Hei Ken, What about a combination of r.grow.distance and r.neighbors? 1) Extract boundaries from raster basins r.neighbors input=basins output=basin_diversity method=diversity r.reclass input=basin_diversity output=basin_boundary rc=- "1 = NULL 2 thru 999 = 1" (if you need the boundaries

Re: [GRASS-user] Clarifying use of postgres/postgis

2020-08-16 Thread Stefan Blumentrath
Hi Dheeraj, GRASS uses a special topological vector format, that – as Micha pointed out – requires for most operations that data are stored in native GRASS format and not PostGIS. However, for points for example external vector data (e.g. in PostGIS) can be used in GRASS in those modules

[GRASS-user] r.regression.multi for logistic regression?

2020-07-24 Thread Stefan Blumentrath
Dear all, Currently, I am trying to establish a statistical relationship between the occurrence of a land cover type and a set of local and global climate variables. So far, I tried amongst others machine learning as well as bayesian and other modelling techniques. Unfortunately, those

Re: [GRASS-user] Reclassify a vector adding a column

2020-06-17 Thread Stefan Blumentrath
Here is the documentation for the LIKE operator in SQLite: https://www.sqlitetutorial.net/sqlite-like/ It should be possible to use it in a “searched case statement”: https://www.sqlitetutorial.net/sqlite-case/ So the syntax would be: db.execute sql="UPDATE myroads SET width=CASE WHEN TYPE LIKE

Re: [GRASS-user] Reclassify a vector adding a column

2020-06-17 Thread Stefan Blumentrath
Ciao Madi, You could use db.execute and do something like: db.execute sql="ALTER TABLE vectormap ADD COLUMN reclass_column TEXT; UPDATE vectormap SET reclass_column = CASE WHEN old_column = ' old value 1' THEN ' new value 1' WHEN old_column = ' old value 2' THEN ' new value 2' WHEN

Re: [GRASS-user] v.what.rast - solved

2020-05-29 Thread Stefan Blumentrath
Hei Uwe, It is unfortunately not obvious from the very beginning, but actually one of the nice features of GRASS GIS. No need to "clip" any data. You can easily operate on any subset of your data and all data will be cleanly aligned even if the extent of on layer changes Once you are used

Re: [GRASS-user] East/West Horizons Giving Negative Numbers

2020-05-27 Thread Stefan Blumentrath
Hi Ashley, The possibility to return negative horizon values was introduced here: https://github.com/OSGeo/grass/commit/688d5885557f22c7ea6618dcac3ddfbfc764731a#diff-5ce8290f429502e23efaf9ebdc18bd2b The output with the d-flag is azimuth degree (-90 – 90, where 0 is parallel with the focal

Re: [GRASS-user] Geomorphic index for valley, using "height of the valley / width of the top of the valley"

2020-04-11 Thread Stefan Blumentrath
Hi Valter, please have a look at: https://grass.osgeo.org/grass78/manuals/addons/r.stream.distance.html r.stream.distance - GRASS GIS manual NAME r.stream.distance - Calculates distance to and elevation above streams and

Re: [GRASS-user] Install package for add-on in /usr/bin/python3

2020-04-08 Thread Stefan Blumentrath
fails), until it becomes available on PyPi. Hope that helps. Cheers Stefan From: robin Sent: søndag 5. april 2020 19:13 To: Stefan Blumentrath Subject: Re: [GRASS-user] Install package for add-on in /usr/bin/python3 Hi Stefan, thank you very much!! Why does my PYTHONPATH needs to point

Re: [GRASS-user] Install package for add-on in /usr/bin/python3

2020-04-04 Thread Stefan Blumentrath
Out[4]: '1.4.10' Cheers Stefan -Original Message- From: Robin Kohrs Sent: tirsdag 31. mars 2020 15:42 To: Stefan Blumentrath Cc: Markus Neteler ; GRASS user list Subject: Re: [GRASS-user] Install package for add-on in /usr/bin/python3 Hi Stefan, thank you very much for

Re: [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS

2020-03-31 Thread Stefan Blumentrath
Yes, I think so. The shell should give you your OS native GRASS command line. Could you try out and report back? From: grass-user On Behalf Of Valter Albino Sent: tirsdag 31. mars 2020 12:43 To: grass-user Subject: [GRASS-user] GRASS "shell" plugin + GRASS "Add-ons" in QGIS Good Morning Sorry

Re: [GRASS-user] Install package for add-on in /usr/bin/python3

2020-03-31 Thread Stefan Blumentrath
Hi Robin, You could try setting the GRASS_PYTHON environment variable to your Python installation with fmask. import os os.environ['GRASS_PYTHON'] = '/YOUR/PYTHON/PATH' As Markus indicates that can cause other issues. You may also have a look at https://github.com/zarch/grass-session for

Re: [GRASS-user] garray.read() returns 0-filled array

2020-03-17 Thread Stefan Blumentrath
one): https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa Hilsen, Stefan -Original Message- From: Ken Mankoff Sent: tirsdag 17. mars 2020 02:02 To: Stefan Blumentrath Cc: GRASS user list Subject: Re: [GRASS-user] garray.read() returns 0-filled array Hi Stefan, On 2020-03-16 at 07:01

Re: [GRASS-user] garray.read() returns 0-filled array

2020-03-16 Thread Stefan Blumentrath
: mandag 16. mars 2020 01:14 To: Stefan Blumentrath Cc: GRASS user list Subject: Re: [GRASS-user] garray.read() returns 0-filled array On 2020-03-15 at 15:11 -07, Stefan Blumentrath wrote... > I have no experience with garray, but raster2numpy function in pygrass > worked quite well

Re: [GRASS-user] garray.read() returns 0-filled array

2020-03-15 Thread Stefan Blumentrath
Hi Ken, I have no experience with garray, but raster2numpy function in pygrass worked quite well for me: https://grass.osgeo.org/grass78/manuals/libpython/pygrass.raster.html#pygrass.raster.raster2numpy Cheers Stefan -Original Message- From: grass-user On Behalf Of Ken Mankoff Sent:

[GRASS-user] Univariate statistics with a moving temporal window over a STRDS

2020-02-25 Thread Stefan Blumentrath
Dear all, I would like to calculate a running univariate statistics over a Space Time Raster Dataset: e.g. for each day the maximum temperature looking up to three days back. In t.rast.algebra, I can use temporal buffering (buff_t() function) or temporal offset for that purpose, but functions

Re: [GRASS-user] Example project for a GRASS GIS module on GitHub

2020-02-04 Thread Stefan Blumentrath
grass-user@lists.osgeo.org Cc: Stefan Blumentrath ; wenzesl...@gmail.com Subject: [GRASS-user] Example project for a GRASS GIS module on GitHub Hi Vasek, thanks for setting up the demo module on GitHub! To demonstrate how module authors can get credit by scientific citation, some kind of refer

Re: [GRASS-user] Example project for a GRASS GIS module on GitHub

2020-01-30 Thread Stefan Blumentrath
Hi, Great work, Vasek! I found the gitlab version already very useful and I can just recommend it for any addon-dev to use as a starting point! Esp. for beginners and autodidacts like me it is very valuable to see everything (and esp. the manual) checked, so a working version can be finally

Re: [GRASS-user] r.in.lidar / v.in.lidar missing in Ubnutu 18.04 package

2020-01-14 Thread Stefan Blumentrath
. januar 2020 15:57 To: Stefan Blumentrath Cc: grass-user grass-user Subject: Re: [GRASS-user] r.in.lidar / v.in.lidar missing in Ubnutu 18.04 package Hi Stefan, On Mon, Jan 13, 2020 at 1:28 PM Stefan Blumentrath wrote: > > Hi Markus, > > And thanks for your reply. > > On

Re: [GRASS-user] r.in.lidar / v.in.lidar missing in Ubnutu 18.04 package

2020-01-13 Thread Stefan Blumentrath
-Original Message- From: Markus Neteler Sent: fredag 10. januar 2020 21:16 To: Stefan Blumentrath Cc: grass-user grass-user Subject: Re: [GRASS-user] r.in.lidar / v.in.lidar missing in Ubnutu 18.04 package On Thu, Jan 9, 2020 at 9:35 AM Stefan Blumentrath wrote: > Hi, > &g

[GRASS-user] r.in.lidar / v.in.lidar missing in Ubnutu 18.04 package

2020-01-09 Thread Stefan Blumentrath
Hi, On two different Ubuntu (18.04) installations with packages from ubuntugis-unstable (GRASS GIS 7.8.2), I am missing r.in.lidar/v.in.lidar modules. Neither GRASS nor a OS search finds r.in.lidar/v.in.lidar... I double-checked and liblas and pdal are installed on both of boxes. Is this a

Re: [GRASS-user] S.K. Jenson and J.O. Domingue (1988) method to filter the elevation map

2019-12-11 Thread Stefan Blumentrath
I assume you refer to: https://grass.osgeo.org/grass78/manuals/r.fill.dir.html There is also: https://grass.osgeo.org/grass78/manuals/r.terraflow.html and

Re: [GRASS-user] compute path with a maximum slope

2019-12-10 Thread Stefan Blumentrath
Hi, you can either try r.walk (https://grass.osgeo.org/grass78/manuals/r.walk.html) and modify variable according to Your threshold or you set slope values above your maximum to NULL (e.g. r.mapcalc expression="slope_below_max=if(slope>37.5,null(),slope)") and then use r.cost

Re: [GRASS-user] i.segment: band_suffix does not seem to have effect

2019-11-20 Thread Stefan Blumentrath
Lennert Sendt: onsdag 20. november 2019 13:16 Til: Stefan Blumentrath ; GRASS users list Emne: Re: [GRASS-user] i.segment: band_suffix does not seem to have effect On 20/11/19 11:19, Stefan Blumentrath wrote: > Hi, > > I thought that if I give the band_suffix option in i.segment it > pr

[GRASS-user] i.segment: band_suffix does not seem to have effect

2019-11-20 Thread Stefan Blumentrath
Hi, I thought that if I give the band_suffix option in i.segment it produces bands with modified band values for all input bands. However, the option does not seem to have effect (no modified output bands are produced). Did I do or understand something wrong? Cheers Stefan

Re: [GRASS-user] stitching together aerial imagery with edge blending

2019-10-17 Thread Stefan Blumentrath
Hi Henry, You could try: https://grass.osgeo.org/grass76/manuals/addons/r.patch.smooth.html Cheers, Stefan Get Outlook for Android From: grass-user on behalf of Henry House Sent: Thursday, October 17, 2019 8:40:42 PM To:

Re: [GRASS-user] g.findfile

2019-10-10 Thread Stefan Blumentrath
I would say it is a bug. -Original Message- From: grass-user On Behalf Of Vincent Bain Sent: torsdag 10. oktober 2019 10:41 To: GRASS user list Subject: [GRASS-user] g.findfile Trying to test the existence of maps with g.findfile I see there is something wrong with the command and its

Re: [GRASS-user] Resample DEM to larger cells

2019-09-26 Thread Stefan Blumentrath
.osgeo.org Subject: Re: [GRASS-user] Resample DEM to larger cells On Wed, 25 Sep 2019, Stefan Blumentrath wrote: > Please have a look at: > https://grass.osgeo.org/grass76/manuals/r.resamp.stats.html Stefan, I don't need statistics on the raster map > Also https://grass.osgeo.

Re: [GRASS-user] Resample DEM to larger cells

2019-09-25 Thread Stefan Blumentrath
Hi Rich, Please have a look at: https://grass.osgeo.org/grass76/manuals/r.resamp.stats.html With g.search.modules (https://grass.osgeo.org/grass76/manuals/g.search.modules.html) you can search for modules using keywords. Also https://grass.osgeo.org/grass76/manuals/rasterintro.html has a

Re: [GRASS-user] question exporting from grass GeoTif files

2019-09-09 Thread Stefan Blumentrath
Hi Gabriel, I would be surprised if the data range is exported incorrectly (if you left autodetection of the data type to export to). Did you check the range of the data with: gdalinfo -mm F101992_c.tif ? Maybe it is just a display issue cause for example ArcGIS might just estimates the range…

Re: [GRASS-user] WinGRASS addons partly back

2019-09-04 Thread Stefan Blumentrath
Hi Helmut, Did you set the computational region properly? Import of data outside the current region is only supported in lat/lon locations... v.in.pygbif -o output=poa_pratensis taxa="Poa pratensis" rank=species Gave me ~ 11k records for Norway and ~58 k records if I move the region 2000k

Re: [GRASS-user] 7.9.dev: SQLite3 error

2019-08-26 Thread Stefan Blumentrath
Hi Rich, There seems to be a typo in your columns option. There should not be a "=" after the last column name, but a white space: Should be: columns='x double precision, y double precision, name char(10)' (not: columns='x double precision, y double precision, > \ name=char(10)') That should

Re: [GRASS-user] GRASSBIN environment variable

2019-08-16 Thread Stefan Blumentrath
Hi Alex, Yes indeed. Would be nice to avoid that. There is actually an open pull request about it: https://github.com/zarch/grass-session/pull/12/files However, I guess a completely version independent solution would be preferable... With Python 3 shutil.which() will be available also on

Re: [GRASS-user] sample a strds at specific locations (areas)

2019-08-12 Thread Stefan Blumentrath
that GRASS centroids are located inside areas it should be mostly OK. Cheers Stefan From: Veronica Andreo Sent: mandag 12. august 2019 16:24 To: Stefan Blumentrath Cc: Margherita Di Leo ; grass-user Subject: Re: [GRASS-user] sample a strds at specific locations (areas) Ciao Madi, is the region

Re: [GRASS-user] sample a strds at specific locations (areas)

2019-08-09 Thread Stefan Blumentrath
ast) and is probably worth a ticket. Cheers Stefan From: Margherita Di Leo Sent: fredag 9. august 2019 16:51 To: Veronica Andreo Cc: Stefan Blumentrath ; grass-user Subject: Re: [GRASS-user] sample a strds at specific locations (areas) Hi, excuse me if I return on this. I have again the same prob

[GRASS-user] Open permanent position as Scientist in spatial analyses and remote sensing in applied ecology in NINA, Oslo, Norway

2019-08-09 Thread Stefan Blumentrath
Dear all, Just want to inform you that there is an open permanent position as "Scientist in spatial analyses and remote sensing in applied ecology" at the Norwegian Institute for Nature Research (NINA), Oslo, Norway:

Re: [GRASS-user] Wrangling CityGML with GRASS ?

2019-08-06 Thread Stefan Blumentrath
Hi Peter, Not personally... I would guess you would import CityGML through GDAL: https://3d.bk.tudelft.nl/svitalis/citygml/gdal/2017/07/24/messing-around-with-citygml-on-gdal-2.2.html There you can create subsets and the like... What are you planning to do with it, roughly? Cheers Stefan

Re: [GRASS-user] Fwd: Re: remove small islands from vector areas

2019-06-21 Thread Stefan Blumentrath
2019 13:49 To: grass-user Subject: [GRASS-user] Fwd: Re: remove small islands from vector areas Weitergeleitete Nachricht Betreff: Re: [GRASS-user] remove small islands from vector areas Datum: Fri, 21 Jun 2019 13:47:52 +0200 Von: Robert Nuske An: Stefan Blumentrath Hi

Re: [GRASS-user] remove small islands from vector areas

2019-06-21 Thread Stefan Blumentrath
Hi Robert, Did you have a look at v.clean: https://grass.osgeo.org/grass77/manuals/v.clean.html with tool=rmarea Cheers Stefan -Original Message- From: grass-user On Behalf Of Robert Nuske Sent: fredag 21. juni 2019 12:33 To: grass-user Subject: [GRASS-user] remove small islands from

Re: [GRASS-user] get raster name in r.series min/max

2019-05-25 Thread Stefan Blumentrath
Hei Vero, Use min_raster and max_for raster method in r.series... Did you try that? Cheers Stefan From: grass-user on behalf of Veronica Andreo Sent: Sunday, May 26, 2019 6:02:47 AM To: Frank David Cc: grass-user Subject: Re: [GRASS-user] get raster name in

Re: [GRASS-user] Early "warning": upcoming switch of SVN to readonly mode for planned GitHub migration

2019-05-16 Thread Stefan Blumentrath
Great news! Thanks to all contributing to this effort! From: grass-user on behalf of Markus Neteler Sent: Thursday, May 16, 2019 6:27:52 PM To: GRASS-announce list Cc: GRASS user list; GRASS developers list Subject: [GRASS-user] Early "warning": upcoming switch

[GRASS-user] Detecting and carving culverts in LiDAR DEMs

2019-05-08 Thread Stefan Blumentrath
Dear all, Since there is a lot of expertise on the ML in hydrology and LiDAR, I was wondering if someone is aware of a GRASS approach for identifying and carving Culverts (as well as removing bridges) in LiDAR DEMs. Here some non-GRASS examples of what has been done earlier:

Re: [GRASS-user] Combining 2d rasters to 3d using point files

2019-05-01 Thread Stefan Blumentrath
Maybe https://grass.osgeo.org/grass77/manuals/t.rast.to.rast3.html can be useful here? From: grass-user on behalf of Francois Chartier Sent: Wednesday, May 1, 2019 2:00:12 PM To: GRASS user list Subject: Re: [GRASS-user] Combining 2d rasters to 3d using point

Re: [GRASS-user] Help; Running Grass from R without installing GRASS

2019-04-28 Thread Stefan Blumentrath
Hi Mehrdad, If this is a permission issue, and the dependencies (and a build environment) are installed, you could try compile GRASS (and install it in your home directory if necessary with the --prefix configure option). svn checkout https://svn.osgeo.org/grass/grass/ grass_trunk cd

Re: [GRASS-user] Import grass.script

2019-04-07 Thread Stefan Blumentrath
Hi, Python 3 support is planned for GRASS 7.8... Furthermore, you might be interested in the grass-session library on pypi... Cheers, Stefan From: grass-user on behalf of Shane Carey Sent: Sunday, April 7, 2019 1:35:11 AM To: grass-user grass-user Subject:

Re: [GRASS-user] help with git migration

2019-04-01 Thread Stefan Blumentrath
Hi, DBMI seems to be missing... I guess that could be useful as well... Cheers Stefan -Original Message- From: grass-user On Behalf Of Martin Landa Sent: mandag 1. april 2019 11:24 To: GRASS users list ; GRASS developers list Subject: Re: [GRASS-user] help with git migration Hi, út

Re: [GRASS-user] merging small areas but keep raster categories

2019-03-10 Thread Stefan Blumentrath
Hi Ken, Did you try the rmarea method for r.reclass.area? That converts to vector, runs v.clean with rmarea and then converts back to raster (if I understood correctly... Cheers, Stefan From: grass-user on behalf of Ken Mankoff Sent: Saturday, March 9, 2019

Re: [GRASS-user] sample a strds at specific locations (areas)

2019-02-07 Thread Stefan Blumentrath
. februar 2019 10:37 To: Stefan Blumentrath Cc: Veronica Andreo ; grass-user Subject: Re: [GRASS-user] sample a strds at specific locations (areas) Hi, thank you for your replies. To give a little more context: I selected my polygon areas to be > 0.5 ha each (this would be 5 mq if

Re: [GRASS-user] sample a strds at specific locations (areas)

2019-02-06 Thread Stefan Blumentrath
Ciao Madi, Vero, Starting with GRASS 7.6, also centroids are used to get the raster representation of your area vector map. That increases the likelihood of smaller areas to be rasterized. Increasing the resolution of the current region alone does not help, because v.rast.stats temporarily

Re: [GRASS-user] sharing GRASS mapsets

2019-02-06 Thread Stefan Blumentrath
Hi Laura, There are several options. One option would be to subdivide “ENVIROMENTAL_COVARIATES” into e.g. topics. In my organisation (also environmental research) we organized mapsets with prefixes (g_ for mapsets of general interest, gt_ for time series, p_ for projects, u_ for users).

[GRASS-user] 2-years postdoctoral position in species distribution modeling at NINA; deadline 1 February 2019

2019-01-07 Thread Stefan Blumentrath
Dear all, Just want to inform you that there is a vacant GIS-related position at NINA in Trondheim. NINA is seeking applicants for a 2-year postdoctoral fellowship to join a research consortium for species distribution modeling of birds in northern Europe. The Future Bird Scenarios project is

Re: [GRASS-user] Sentinel2- flooding

2018-12-07 Thread Stefan Blumentrath
Hi Shane, Following up on robertos answer: You could try the Normalized Difference Water Index (NDWI) which is computed for S-2 as: ndwi = (B08-B11)/(B08+B11) or alternatively ndwi = (B03 - B08) / (B03 + B08) See e.g.:

Re: [GRASS-user] Sentinel 1 in GRASS

2018-11-26 Thread Stefan Blumentrath
11:33 To: Stefan Blumentrath Cc: GRASS user list Subject: Re: [GRASS-user] Sentinel 1 in GRASS Stefan, I overlooked to mention that my aim is to explore the capabilities for detecting areas of deforestation. Thanks for sharing your workflow! It will surely be useful for me. Kind regards

Re: [GRASS-user] Sentinel 1 in GRASS

2018-11-26 Thread Stefan Blumentrath
Hi Margherita, There are a lot of very different possible workflows with S-1, depending on what you are aiming at... For terrestrial mapping applications, feel free to take inspiration from here (finishing off a report on the project right now):

[GRASS-user] Get values from raster map following a direction map for n steps

2018-11-20 Thread Stefan Blumentrath
Dear all, In an r.mapcalc expression, I would like to trace values along a direction map for 1 to n steps (e.g. looking 4 steps ahead along a path or stream or along a given direction (degrees or 45degrees). I tried using the neighborhood modifier within an eval function in r.mapcalc.

Re: [GRASS-user] Help Puerto Rico Crowdsource GIS Data

2018-11-12 Thread Stefan Blumentrath
You could also have a look at GeoSHAPE: http://geoshape.org/ However, there are plenty of tools out there, like: https://geopaparazzi.github.io/geopaparazzi/ Cheers Stefan -Original Message- From: grass-user On Behalf Of Moritz Lennert Sent: mandag 12. november 2018 08:18 To:

Re: [GRASS-user] remove sliver polygons and dissolving adjacent ones

2018-11-01 Thread Stefan Blumentrath
Hei Giuseppe, For your first task use v.clean: https://grass.osgeo.org/grass76/manuals/v.clean.html For the second v.dissolve: https://grass.osgeo.org/grass76/manuals/v.dissolve.html Cheers Stefan From: grass-user On Behalf Of Giuseppe Cillis Sent: torsdag 1. november 2018 10:39 To:

Re: [GRASS-user] partial vector copy to smaller territory

2018-10-31 Thread Stefan Blumentrath
Hei Frank, Did you try the “spatial” option in v.in.ogr (or the r-flag) (if your data is in a shape-file to start with): https://grass.osgeo.org/grass74/manuals/v.in.ogr.html ? And is v.clip slower than v.overlay (that could be used as well)? Cheers Stefan From: grass-user On Behalf Of Frank

Re: [GRASS-user] zonal statistics for multiple areas

2018-10-29 Thread Stefan Blumentrath
Hi Alessandro, You could try v.rast.bufferstats [1], if you do not have hundrets of thousands of points…. If the buffers don`t overlap, you could use v.rast.stats [2] from the upcoming GRASS 7.6 release, that will allow multiple raster input… Otherwise have a look at the general introduction

  1   2   >