Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions raster/r.out.vtk/r.out.vtk.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,21 @@ <h3>Simple Spearfish example</h3>
paraview --data=/tmp/out.vtk
</pre></div>

<h3>Spearfish example with RGB data</h3>
<h3>North Carolina sample dataset example with RGB data</h3>

<div class="code"><pre>
#set the region
g.region n=4926990 s=4914840 w=591570 e=607800 res=30 -p
# set the region to the statewide North Carolina elevation map
g.region raster=elev_state_500m -p

# using r.in.wms to create RGB data to get a satellite coverage
r.in.wms layers=global_mosaic mapserver=http://wms.jpl.nasa.gov/wms.cgi \
output=wms_global_mosaic
# use r.in.wms with the -b flag to fetch RGB satellite imagery from
# NASA GIBS as separate .red, .green and .blue rasters
r.in.wms -b layers=BlueMarble_ShadedRelief_Bathymetry \
url=https://gibs.earthdata.nasa.gov/wms/epsg4326/best/wms.cgi \
output=wms_blue_marble

# export the data to VTK
r.out.vtk rgbmaps=wms_global_mosaic.red,wms_global_mosaic.green,wms_global_mosaic.blue \
elevation=elevation.10m output=/tmp/out.vtk
r.out.vtk rgbmaps=wms_blue_marble.red,wms_blue_marble.green,wms_blue_marble.blue \
elevation=elev_state_500m output=/tmp/out.vtk

# visualize in Paraview or other VTK viewer:
paraview --data=/tmp/out.vtk
Expand Down
18 changes: 10 additions & 8 deletions raster/r.out.vtk/r.out.vtk.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,21 @@ r.out.vtk input=elevation.10m,slope,aspect elevation=elevation.10m output=/tmp/o
paraview --data=/tmp/out.vtk
```

### Spearfish example with RGB data
### North Carolina sample dataset example with RGB data

```sh
#set the region
g.region n=4926990 s=4914840 w=591570 e=607800 res=30 -p
# set the region to the statewide North Carolina elevation map
g.region raster=elev_state_500m -p

# using r.in.wms to create RGB data to get a satellite coverage
r.in.wms layers=global_mosaic mapserver=http://wms.jpl.nasa.gov/wms.cgi \
output=wms_global_mosaic
# use r.in.wms with the -b flag to fetch RGB satellite imagery from
# NASA GIBS as separate .red, .green and .blue rasters
r.in.wms -b layers=BlueMarble_ShadedRelief_Bathymetry \
url=https://gibs.earthdata.nasa.gov/wms/epsg4326/best/wms.cgi \
output=wms_blue_marble

# export the data to VTK
r.out.vtk rgbmaps=wms_global_mosaic.red,wms_global_mosaic.green,wms_global_mosaic.blue \
elevation=elevation.10m output=/tmp/out.vtk
r.out.vtk rgbmaps=wms_blue_marble.red,wms_blue_marble.green,wms_blue_marble.blue \
elevation=elev_state_500m output=/tmp/out.vtk

# visualize in Paraview or other VTK viewer:
paraview --data=/tmp/out.vtk
Expand Down
Loading