[GRASS-user] Visualizing 3d Rasters

Markus Neteler neteler at osgeo.org
Mon Oct 28 09:37:23 PDT 2019


Hi Lindsi,

Here a late response but why not ...:

On Tue, Aug 27, 2019 at 4:50 PM Lindsi Seegmiller <lindsi at kth.se> wrote:
>
> I’m hoping someone can help me understand why I cannot view simple 3d rasters.
>
> For example, I can import an ascii (text pasted below) using r3.in.ascii without error, but I do not see anything on the display.  Can anyone test this and let me know if they are able to visualize it?
>
> This is sample data from the GRASS website, so it should be formatted correctly.  And when I import a sample 2d raster from the GRASS website, I am able to visualize that with no problem.

I tried it as well:

GRASS 7.8.1dev (nc_spm_08):~ > r3.in.ascii input=r3_test.asc output=r3_test
Found version information: grass7
Found south -> north, bottom -> top order (snbt)
Loading data ... (4x5x3)
 100%

GRASS 7.8.1dev (nc_spm_08):~ > g.region raster3=r3_test -p3
projection: 99 (Lambert Conformal Conic)
zone:       0
datum:      nad83
ellipsoid:  a=6378137 es=0.006694380022900787
north:      5
south:      0
west:       0
east:       4
top:        3.00000000
bottom:     0.00000000
nsres:      1
nsres3:     1
ewres:      1
ewres3:     1
tbres:      1
rows:       5
rows3:      5
cols:       4
cols3:      4
depths:     3
cells:      20
cells3:     60

GRASS 7.8.1dev (nc_spm_08):~ > r3.univar r3_test
 100%
total null and non-null cells: 60
total null cells: 0

Of the non-null cells:
----------------------
n: 60
minimum: 1
maximum: 3
range: 2
mean: 2
mean of absolute values: 2
standard deviation: 0.816497
variance: 0.666667
variation coefficient: 40.8248 %
sum: 120

How did you try to visualize it?

Besides NVIZ, another nice option is Paraview. See
https://grasswiki.osgeo.org/wiki/GRASS_and_Paraview

best
Markus


More information about the grass-user mailing list