Cloud

class caris.coverage.Cloud([filename = ''[, uri = ''[, options = None]]])

CSAR Point Cloud

__init__()

Constructor

Keyword Arguments:
 
  • filename (str) – The filename of the opened csar file.
  • uri (str) – The uri of the opened csar file.
  • options (Options) – Options to use when opening the csar file. Defaults to READ mode if no options supplied
add_band()

Adds a new band

Parameters:band_info (BandInfo) – The band info describing the band to be added
create_copy()

Creates a copy of this cloud

Either uri or path must be specified.

Keyword Arguments:
 
  • path (str) – The file path of the destination CSAR file
  • uri (str) – The file uri of the destination CSAR file.
query()

Query values in the Cloud

Parameters:
  • bands (list(str), optional) – List of band names to query. If None all bands will be available.
  • box (((x1, y1), (x2, y2))) – Optional box to query
Returns:

Iterator that retuns dict(str: numpy.ndarray)

Return type:

BlockIterator

remove_band()

Removes a band

Parameters:band_name (str) – The name of the band fto be removed
band_info

dict(BandInfo) – The band information

extents

((x1, y1, z1),(x2, y2, z2)) of double – The geographic extents of the point cloud

iso19139_xml

str – The iso xml metadata.

point_count

int – The total number of points in the point cloud

position_band_name

str – The position band name.

uri

str – The uri of the opened csar file

wkt_cosys

str – The coordinate system in WKT format.