reads subset of an ENVI BIL image

read_BIL_image_subset(
  ImPath,
  HDR,
  Byte_Start,
  lenBin,
  nbLines,
  Image_Format,
  ImgFormat
)

Arguments

ImPath

path for the image

HDR

header information corresponding to the image

Byte_Start

location of byte where to start reading in the image

lenBin

number of elements to read

nbLines

number of lines to read

Image_Format

type of data (INT/FLOAT)

ImgFormat

should output be 2D or 3D (original image format)?

Value

data corresponding to the subset in original 3D format