point cloud idl routines

Last modified: Thu Mar 16 13:07:09 2023.


List of Routines


Routine Descriptions

PCLDINPLAS - INPUT A .LAS FILE

[Next Routine] [List of Routines]
NAME:
pcldinplas - input a .las file
SYNTAX: stat=pcldinplas(fname,hdr,d,maxpnts=maxpnts,hdronly=hdronly)
ARGS: 
 fname: string  .las file to input
KEYWORDS:
hdronly:        if set then only input the header
maxpnts: long   limit to le maxpnts (taken from start of file)
RETURNS:
stat   :long    >= 0 .. number of points in d.if hdronly. returns 0.
                   -1   not .las version 1.2
                   -2   not datapoint format 0,2 or 3
                   -3  open i/o error (open).
    $u               -4  header read error
                   -5  data read error

hdr    :{}      public header for .las file
d[n]   :{}      array of points input
DESCRIPTION:
	Input data from an .las file. This is the file format ao has been using to 
access point cloud data (haven't had time to figure out .e57:).
	The caller gives the filename to input. You can optionally limit
the number of points to le maxpnts using the maxpnts= keyword.

	The routine will:
 - input the header (it only knows about ver 1.2 headers).
 - skip any variable length records.
 - read in the data points.
   it only recognizes data point format=0 or 2
Note
  	You need to @pcldinitt  before calling this routine (to define the
 data structures.

(See /pkg/rsi/local/libao/phil/pcld/pcldinplas.pro)


PCLDLASSCALE - SCALE THE INPUT LAS XYZ DATA TO DOUBLE OR FLOATS

[Previous Routine] [List of Routines]
NAME:
pcldlasscale - scale the input las xyz data to double or floats
SYNTAX: xyz=pcldlasscale(hdr,d,float=float)
ARGS: 
 hdr:  {}   header input from pcldlasinp
 d[n]: {}   array of data struct returned by pcldlasinp
KEYWORDS:
float:     if set then return xyz[] as a float array. def:double
RETURNS:
xyz[n,3]: double/float  position data scaled to meters
DESCRIPTION:
	Scale the las data  long to doubles or floats
Note
  -	You need to @pcldinit  before calling this routine (to define the
 data structures.
   
  -   hdr, and d come from pcldinplas

(See /pkg/rsi/local/libao/phil/pcld/pcldlasscale.pro)