EnglishFrenchSpanish

OnWorks favicon

r.out.xyzgrass - Online in the Cloud

Run r.out.xyzgrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command r.out.xyzgrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


r.out.xyz - Exports a raster map to a text file as x,y,z values based on cell centers.

KEYWORDS


raster, export, ASCII, conversion

SYNOPSIS


r.out.xyz
r.out.xyz --help
r.out.xyz input=name[,name,...] [output=name] [separator=character] [--overwrite]
[--help] [--verbose] [--quiet] [--ui]

Flags:
--overwrite
Allow output files to overwrite existing files

--help
Print usage summary

--verbose
Verbose module output

--quiet
Quiet module output

--ui
Force launching GUI dialog

Parameters:
input=name[,name,...] [required]
Name of input raster map(s)

output=name
Name for output file (if omitted or "-" output to stdout)

separator=character
Field separator
Special characters: pipe, comma, space, tab, newline
Default: pipe

DESCRIPTION


The r.out.xyz module exports a raster map as a list of x,y,z values into an ASCII text
file.

NOTES


This module will not export x,y coordinates for raster cells containing a NULL value. This
includes cells masked by a raster MASK.

This module, as all GRASS raster modules, will export cells based on the current region
settings. See the g.region module for details.

The r.out.ascii module should be used to export an array (of size row x column) containing
z values.

r.out.xyz can combine several input raster maps, which can be convenient when it comes to
e.g. produce ASCII point cloud files.

r.out.xyz is simply a front-end to "r.stats -1gn".

EXAMPLES


In this example, a LiDAR elevation map in the North Carolina sample dataset location is
exported to CSV format.
g.region raster=elev_lid792_1m -p
r.out.xyz input=elev_lid792_1m output=elev_lid792_1m.csv separator=","

In this example, elevation data from the North Carolina dataset are exported along with
R,G,B triplet of the related orthophoto into a combined file (requires the import of the
supplementary high-resolution color orthophoto, here called "ortho2010_t792"):
g.region raster=elev_lid792_1m res=1 -a -p
r.out.xyz input=elev_lid792_1m,ortho2010_t792.red,ortho2010_t792.green,ortho2010_t792.blue \
separator=space output=pointcloud.asc
# validate: X Y Z R G B
head -n 3 pointcloud.asc
638300.5 220749.5 126.338218689 78 84 71
638301.5 220749.5 126.3381958008 93 101 86
638302.5 220749.5 126.3414840698 68 77 59

TODO


Implement this script as a r.out.ascii option?

Use r.out.xyzgrass online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Free Pascal Compiler
    Free Pascal Compiler
    A 32/64/16-bit Pascal compiler for
    Win32/64/CE, Linux, Mac OS X/iOS,
    Android, FreeBSD, OS/2, Game Boy
    Advance, Nintendo NDS and DOS;
    semantically compatible wi...
    Download Free Pascal Compiler
  • 2
    Canon EOS DIGITAL Info
    Canon EOS DIGITAL Info
    Canon doesn�t have shutter count
    included on the EXIF information of an
    image file, as opposed to Nikon and
    Pentax. There�s no official Canon based
    application ...
    Download Canon EOS DIGITAL Info
  • 3
    rEFInd
    rEFInd
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • 4
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 5
    Music Caster
    Music Caster
    Music Caster is a tray music player
    that lets you cast your local music to a
    Google Cast device. On the first run,
    you will need to click the arrow in your
    tas...
    Download Music Caster
  • 6
    PyQt
    PyQt
    PyQt is the Python bindings for
    Digia's Qt cross-platform
    application development framework. It
    supports Python v2 and v3 and Qt v4 and
    Qt v5. PyQt is avail...
    Download PyQt
  • More »

Linux commands

Ad