R: Write a .las or .laz file

writelas {rlas} | R Documentation

## Write a .las or .laz file

### Description

Write a .las or .laz file. All the fields are optional except X, Y and Z coordinates. If the user does not provide a field such as `Intensity`, for example, but this field is required according to the version of the file specified in the `header`, 0 will be written in this field. For more informations, see the ASPRS documentation for the LAS file format.

### Usage

    writelas(file, header, X, Y, Z, gpstime, Intensity, ReturnNumber,
      NumberOfReturns, ScanDirectionFlag, EdgeOfFlightline, Classification,
      ScanAngle, UserData, PointSourceID, R, G, B)

### Arguments

`file` | character. filename of .las or .laz file
`header` | list of character. The data for the file header properly labelled (see readlasheader)
`X` | numeric array X data
`Y` | numeric array Y data
`Z` | numeric array Z data
`gpstime` | numeric array gpstime data
`Intensity` | integer array intensity data
`ReturnNumber` | integer array return number data
`NumberOfReturns` | integer array number of returns data
`ScanDirectionFlag` | integer array scan direction flag data
`EdgeOfFlightline` | integer array edge of flightline data
`Classification` | integer array classification data
`ScanAngle` | integer array scan angle data
`UserData` | integer array user data data
`PointSourceID` | integer array point source id data
`R` | integer array red data
`G` | integer array green data
`B` | integer array blue data

### Value

void

### See Also

Other rlas: `readlasdata`, `readlasheader`

[Package rlas version 1.1.9 Index]