Writeenvi

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Purpose

Write DSO or numeric array to ENVI file format.

Synopsis

out = writeenvi(imagedata,filename,options)

Description

Write data in BSQ (Band Sequential) format to ENVI file. Creates .hdr and .img file. Output 'out' indicates if writing to files was successful (out = 1) or an error occurred (out = -1).

Inputs

  • imagedata = X x Y x N (spacial x spacial x variable) numeric array or image Dataset.
  • filename = file name to read.

Outputs

  • imagedso = a DataSet object containing the image in the read file.

Options

options = a structure array with the following fields:

  • waitbar : [ 'off' |{'on'}] Governs display of a waitbar while writing.
  • convertDT : [{}] Convert data to specified format when writing. Empty indicates using current format. Image must be scaled prior to caling writeenvi.

See Also

buildimage, envirdr