The ENVI image files are accompanied by an ASCII header file (.hdr format) containing the metadata of the image, such as number of samples (rows), lines (columns), number of spectral bands, wavelength, byte order, data type, gain values (if available), irradiance (if available), coordinates etc. This file is necessary to properly read the image data.

read_hdr_envi(path, hFOV = NULL, vFOV = NULL, height = NULL)

Arguments

path

A character giving the path for the header file (.hdr).

hFOV

(Optional, numeric) The horizontal Field Of View (in degrees) of the sensor. Note: this is used to calculate the spatial extent. See Details.

vFOV

(Optional, numeric) The vertical Field Of View (in degrees) of the sensor. Note: this is used to calculate the spatial extent. See Details.

height

(Optional, numeric) The flight altitude (in meters). Note: this is be used to calculate the spatial extent. See Details.

Value

A list of the following:

dim

An integer vector with the dimensions of the image: number of columns (x), rows (y) and layers (spectral bands).

wavelength

A numeric vector of the wavelength registered, the same length as the number of layers (spectral bands).

gain

A numeric vector of gain values of each spectral band.

irradiance

A numeric vector of the solar irradiance values registered by the corresponding sensor at each spectral band. Please check the unit (usually W/(m^2 µm sr)) with the manufacturer specifications.

coordinates

A numeric matrix with the geographic coordinates (xy) registered by the sensor at each spectral band.

extents

A four-column numeric matrix with the spatial extents (xmin, xmax, ymin, ymax), in UTM, of each spectral band. This is NULL if the optional arguments are not passed.

CRS

The Coordinate Reference System of the spatial extents. This is NULL if the optional arguments are not passed.

Details

The geographical coordinates (xy) registered in the header file are automatically retrieved. Please be aware that read_hdr_envi uses the string "gps" to search this field in the header file. If necessary, rename this field in the header file.

If the arguments hFOV, vFOV and height are passed, read_hdr_envi will automatically compute the UTM zone and the spatial extent, and set up the coordinate reference system.

See also

Examples

# Example 1
path_hdr <- system.file('exdata', 'obory.hdr', package = 'hyperbrick')
readLines(path_hdr)
#>  [1] "ENVI"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
#>  [2] "description = package hyperbrick"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
#>  [3] "wavelength units = nm"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
#>  [4] "samples = 128"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
#>  [5] "lines = 128"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
#>  [6] "file type = ENVI"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
#>  [7] "interleave = BSQ"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
#>  [8] "byte order = 0"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
#>  [9] "data type = 3"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
#> [10] "bands = 81"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
#> [11] "acquisition mode = 12"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
#> [12] "acquisition time = 2025-11-14T23:10:19.283359000+02:00"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
#> [13] "wavelength = {500.0,505.0,510.0,515.0,520.0,525.0,530.0,535.0,540.0,545.0,550.0,555.0,560.0,565.0,570.0,575.0,580.0,585.0,590.0,595.0,600.0,605.0,610.0,615.0,620.0,625.0,630.0,635.0,640.0,645.0,650.0,655.0,660.0,665.0,670.0,675.0,680.0,685.0,690.0,695.0,700.0,705.0,710.0,715.0,720.0,725.0,730.0,735.0,740.0,745.0,750.0,755.0,760.0,765.0,770.0,775.0,780.0,785.0,790.0,795.0,800.0,805.0,810.0,815.0,820.0,825.0,830.0,835.0,840.0,845.0,850.0,855.0,860.0,865.0,870.0,875.0,880.0,885.0,890.0,895.0,900.0}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
#> [14] "fwhm = {0.0,0.0,8.0,8.0,9.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,9.0,9.0,9.0,9.0,8.0,10.0,8.0,11.0,8.0,8.0,9.0,8.0,8.0,9.0,8.0,8.0,8.0,8.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,6.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,7.0,11.0,11.0,11.0,11.0,11.0,11.0,11.0,11.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
#> [15] "data gain values = {0.000000,0.000000,0.001086,0.001104,0.001147,0.001175,0.001160,0.001120,0.001137,0.001155,0.001152,0.001147,0.001168,0.001207,0.001238,0.001248,0.001248,0.001277,0.001338,0.001372,0.001362,0.001349,0.001097,0.001131,0.001182,0.001253,0.001413,0.001726,0.001977,0.002439,0.001997,0.001656,0.001605,0.001633,0.001698,0.001758,0.001776,0.001768,0.001740,0.001717,0.002088,0.002225,0.002339,0.002429,0.002459,0.002431,0.002388,0.002362,0.002390,0.002473,0.002576,0.002645,0.002670,0.002656,0.002618,0.002066,0.002090,0.002145,0.002222,0.002324,0.002426,0.002511,0.002572,0.002586,0.001856,0.001868,0.001911,0.001993,0.002105,0.002230,0.002338,0.002419,0.002478,0.002522,0.002564,0.002600,0.002653,0.002728,0.002836,0.002964,0.003128}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
#> [16] "solar irradiance = {175.990097,175.990097,174.207916,174.207916,174.207916,174.801971,174.801971,174.801971,174.801971,174.801971,174.801971,174.801971,174.603958,174.603958,174.603958,174.603958,174.603958,174.603958,174.603958,174.603958,174.554443,174.554443,174.702957,174.702957,174.702957,174.702957,174.702957,174.702957,174.702957,174.702957,174.207916,174.207916,174.207916,174.207916,174.207916,174.207916,174.207916,174.207916,174.801971,174.801971,174.851471,174.851471,174.851471,174.851471,174.851471,174.851471,174.851471,174.851471,175.544540,175.544540,175.544540,175.544540,175.544540,175.544540,175.544540,174.603958,174.603958,174.554443,174.554443,174.554443,174.554443,174.554443,174.554443,174.554443,174.851471,174.851471,174.851471,174.851471,174.851471,174.851471,175.049500,175.049500,175.049500,175.049500,175.049500,175.049500,175.049500,175.049500,175.049500,175.049500,174.702957}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
#> [17] "geo points = {1.0000,1.0000,nan,nan}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
#> [18] "sequence order = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
#> [19] "order = {0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
#> [20] "timestamp = {0,9151000,893626000,920351000,946659000,987048000,1014019000,1040990000,1054476000,1067961000,1081446000,1094932000,1108417000,1121903000,1135388000,1148874000,1162359000,1175844000,1202815000,1229786000,1256757000,1297213000,734110000,760419000,773572000,786935000,800297000,813660000,827021000,840385000,853538000,866902000,880263000,893626000,906988000,933505000,960078000,973563000,1000534000,1027505000,1392310000,1405466000,1418827000,1432190000,1445551000,1458915000,1472276000,1485640000,1499001000,1512364000,1525726000,1539089000,1552451000,1565814000,1579175000,1189330000,1216301000,1243272000,1270243000,1283728000,1310699000,1324184000,1337670000,1351155000,520520000,533674000,547037000,560399000,573762000,587123000,600487000,613848000,627211000,640573000,653936000,667297000,680660000,694022000,707385000,720747000,747264000}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
#> [21] "frame counter = {14256,14257,14287,14289,14291,14294,14296,14298,14299,14300,14301,14302,14303,14304,14305,14306,14307,14308,14310,14312,14314,14317,14274,14276,14277,14278,14279,14280,14281,14282,14283,14284,14285,14286,14288,14290,14292,14293,14295,14297,14322,14323,14324,14325,14326,14327,14328,14329,14330,14331,14332,14333,14334,14335,14336,14309,14311,14313,14315,14316,14318,14319,14320,14321,14258,14259,14260,14261,14262,14263,14264,14265,14266,14267,14268,14269,14270,14271,14272,14273,14275}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
#> [22] "integration time = {8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0,8.0}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
#> [23] "gps = {\"$GNRMC,111154,A,5204.5354,N,02111.1317,E,0.7529,339.131,291021,,*25\",\"$GNRMC,111154,A,5204.5354,N,02111.1317,E,0.7529,339.131,291021,,*25\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111154,A,5204.5354,N,02111.1317,E,0.7529,339.131,291021,,*25\",\"$GNRMC,111154,A,5204.5354,N,02111.1317,E,0.7529,339.131,291021,,*25\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\",\"$GNRMC,111158,A,5204.5354,N,02111.1317,E,0.0451,40.385,291021,,*10\"}"
#> [24] "acceleration = {\"0.154882,1.039324,-9.566206\",\"0.154882,1.039324,-9.566206\",\"-0.677534,-1.455532,-9.306076\",\"0.455078,3.305146,-9.096776\",\"0.455078,3.305146,-9.096776\",\"-0.913744,-0.420394,-9.022026\",\"-0.913744,-0.420394,-9.022026\",\"-0.913744,-0.420394,-9.022026\",\"-0.913744,-0.420394,-9.022026\",\"-0.273286,0.576472,-9.485476\",\"-0.273286,0.576472,-9.485476\",\"-0.273286,0.576472,-9.485476\",\"-0.273286,0.576472,-9.485476\",\"-0.273286,0.576472,-9.485476\",\"-0.273286,0.576472,-9.485476\",\"1.219322,2.292732,-10.122944\",\"1.219322,2.292732,-10.122944\",\"1.219322,2.292732,-10.122944\",\"1.219322,2.292732,-10.122944\",\"0.160862,0.669760,-9.301890\",\"0.160862,0.669760,-9.301890\",\"0.160862,0.669760,-9.301890\",\"-0.084318,-0.226642,-9.795838\",\"2.686216,5.575154,-10.353174\",\"2.686216,5.575154,-10.353174\",\"2.686216,5.575154,-10.353174\",\"2.686216,5.575154,-10.353174\",\"2.686216,5.575154,-10.353174\",\"2.686216,5.575154,-10.353174\",\"-0.677534,-1.455532,-9.306076\",\"-0.677534,-1.455532,-9.306076\",\"-0.677534,-1.455532,-9.306076\",\"-0.677534,-1.455532,-9.306076\",\"-0.677534,-1.455532,-9.306076\",\"-0.677534,-1.455532,-9.306076\",\"0.455078,3.305146,-9.096776\",\"0.455078,3.305146,-9.096776\",\"0.455078,3.305146,-9.096776\",\"-0.913744,-0.420394,-9.022026\",\"-0.913744,-0.420394,-9.022026\",\"-1.079390,-1.016002,-9.765340\",\"0.831220,1.953068,-10.296962\",\"0.831220,1.953068,-10.296962\",\"0.831220,1.953068,-10.296962\",\"0.831220,1.953068,-10.296962\",\"-0.939458,-0.458068,-10.042214\",\"-0.939458,-0.458068,-10.042214\",\"-0.939458,-0.458068,-10.042214\",\"-0.939458,-0.458068,-10.042214\",\"-0.939458,-0.458068,-10.042214\",\"-0.939458,-0.458068,-10.042214\",\"-1.040520,-1.313208,-10.254504\",\"-1.040520,-1.313208,-10.254504\",\"-1.040520,-1.313208,-10.254504\",\"-1.040520,-1.313208,-10.254504\",\"1.219322,2.292732,-10.122944\",\"1.219322,2.292732,-10.122944\",\"0.160862,0.669760,-9.301890\",\"0.160862,0.669760,-9.301890\",\"0.160862,0.669760,-9.301890\",\"-1.079390,-1.016002,-9.765340\",\"-1.079390,-1.016002,-9.765340\",\"-1.079390,-1.016002,-9.765340\",\"-1.079390,-1.016002,-9.765340\",\"0.507104,2.054130,-9.428068\",\"0.507104,2.054130,-9.428068\",\"0.998660,2.834520,-10.378290\",\"0.998660,2.834520,-10.378290\",\"0.998660,2.834520,-10.378290\",\"0.998660,2.834520,-10.378290\",\"0.817466,1.422044,-10.411180\",\"0.817466,1.422044,-10.411180\",\"0.817466,1.422044,-10.411180\",\"0.817466,1.422044,-10.411180\",\"0.817466,1.422044,-10.411180\",\"0.817466,1.422044,-10.411180\",\"-0.084318,-0.226642,-9.795838\",\"-0.084318,-0.226642,-9.795838\",\"-0.084318,-0.226642,-9.795838\",\"-0.084318,-0.226642,-9.795838\",\"-0.084318,-0.226642,-9.795838\"}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
#> [25] "gyroscope = {\"0.019584,-0.049572,0.059670\",\"0.019584,-0.049572,0.059670\",\"0.019737,-0.058752,0.052938\",\"0.016983,-0.057528,0.042687\",\"0.016983,-0.057528,0.042687\",\"0.017748,-0.047277,0.047430\",\"0.017748,-0.047277,0.047430\",\"0.017748,-0.047277,0.047430\",\"0.017748,-0.047277,0.047430\",\"0.009180,-0.061353,0.040392\",\"0.009180,-0.061353,0.040392\",\"0.009180,-0.061353,0.040392\",\"0.009180,-0.061353,0.040392\",\"0.009180,-0.061353,0.040392\",\"0.009180,-0.061353,0.040392\",\"0.029529,-0.052632,0.039474\",\"0.029529,-0.052632,0.039474\",\"0.029529,-0.052632,0.039474\",\"0.029529,-0.052632,0.039474\",\"0.013158,-0.055539,0.056916\",\"0.013158,-0.055539,0.056916\",\"0.013158,-0.055539,0.056916\",\"0.023409,-0.055998,0.044829\",\"0.019584,-0.043758,0.042993\",\"0.019584,-0.043758,0.042993\",\"0.019584,-0.043758,0.042993\",\"0.019584,-0.043758,0.042993\",\"0.019584,-0.043758,0.042993\",\"0.019584,-0.043758,0.042993\",\"0.019737,-0.058752,0.052938\",\"0.019737,-0.058752,0.052938\",\"0.019737,-0.058752,0.052938\",\"0.019737,-0.058752,0.052938\",\"0.019737,-0.058752,0.052938\",\"0.019737,-0.058752,0.052938\",\"0.016983,-0.057528,0.042687\",\"0.016983,-0.057528,0.042687\",\"0.016983,-0.057528,0.042687\",\"0.017748,-0.047277,0.047430\",\"0.017748,-0.047277,0.047430\",\"0.015147,-0.048960,0.033354\",\"0.017901,-0.054009,0.054774\",\"0.017901,-0.054009,0.054774\",\"0.017901,-0.054009,0.054774\",\"0.017901,-0.054009,0.054774\",\"0.018360,-0.054315,0.045594\",\"0.018360,-0.054315,0.045594\",\"0.018360,-0.054315,0.045594\",\"0.018360,-0.054315,0.045594\",\"0.018360,-0.054315,0.045594\",\"0.018360,-0.054315,0.045594\",\"0.017442,-0.043299,0.045135\",\"0.017442,-0.043299,0.045135\",\"0.017442,-0.043299,0.045135\",\"0.017442,-0.043299,0.045135\",\"0.029529,-0.052632,0.039474\",\"0.029529,-0.052632,0.039474\",\"0.013158,-0.055539,0.056916\",\"0.013158,-0.055539,0.056916\",\"0.013158,-0.055539,0.056916\",\"0.015147,-0.048960,0.033354\",\"0.015147,-0.048960,0.033354\",\"0.015147,-0.048960,0.033354\",\"0.015147,-0.048960,0.033354\",\"0.026775,-0.061659,0.045135\",\"0.026775,-0.061659,0.045135\",\"0.009486,-0.054774,0.030447\",\"0.009486,-0.054774,0.030447\",\"0.009486,-0.054774,0.030447\",\"0.009486,-0.054774,0.030447\",\"0.017748,-0.057681,0.049419\",\"0.017748,-0.057681,0.049419\",\"0.017748,-0.057681,0.049419\",\"0.017748,-0.057681,0.049419\",\"0.017748,-0.057681,0.049419\",\"0.017748,-0.057681,0.049419\",\"0.023409,-0.055998,0.044829\",\"0.023409,-0.055998,0.044829\",\"0.023409,-0.055998,0.044829\",\"0.023409,-0.055998,0.044829\",\"0.023409,-0.055998,0.044829\"}"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
read_hdr_envi(path_hdr)
#> $dim
#> [1] 128 128  81
#> 
#> $wavelength
#>  [1] 500 505 510 515 520 525 530 535 540 545 550 555 560 565 570 575 580 585 590
#> [20] 595 600 605 610 615 620 625 630 635 640 645 650 655 660 665 670 675 680 685
#> [39] 690 695 700 705 710 715 720 725 730 735 740 745 750 755 760 765 770 775 780
#> [58] 785 790 795 800 805 810 815 820 825 830 835 840 845 850 855 860 865 870 875
#> [77] 880 885 890 895 900
#> 
#> $gain
#>  [1] 0.000000 0.000000 0.001086 0.001104 0.001147 0.001175 0.001160 0.001120
#>  [9] 0.001137 0.001155 0.001152 0.001147 0.001168 0.001207 0.001238 0.001248
#> [17] 0.001248 0.001277 0.001338 0.001372 0.001362 0.001349 0.001097 0.001131
#> [25] 0.001182 0.001253 0.001413 0.001726 0.001977 0.002439 0.001997 0.001656
#> [33] 0.001605 0.001633 0.001698 0.001758 0.001776 0.001768 0.001740 0.001717
#> [41] 0.002088 0.002225 0.002339 0.002429 0.002459 0.002431 0.002388 0.002362
#> [49] 0.002390 0.002473 0.002576 0.002645 0.002670 0.002656 0.002618 0.002066
#> [57] 0.002090 0.002145 0.002222 0.002324 0.002426 0.002511 0.002572 0.002586
#> [65] 0.001856 0.001868 0.001911 0.001993 0.002105 0.002230 0.002338 0.002419
#> [73] 0.002478 0.002522 0.002564 0.002600 0.002653 0.002728 0.002836 0.002964
#> [81] 0.003128
#> 
#> $irradiance
#>  [1] 175.9901 175.9901 174.2079 174.2079 174.2079 174.8020 174.8020 174.8020
#>  [9] 174.8020 174.8020 174.8020 174.8020 174.6040 174.6040 174.6040 174.6040
#> [17] 174.6040 174.6040 174.6040 174.6040 174.5544 174.5544 174.7030 174.7030
#> [25] 174.7030 174.7030 174.7030 174.7030 174.7030 174.7030 174.2079 174.2079
#> [33] 174.2079 174.2079 174.2079 174.2079 174.2079 174.2079 174.8020 174.8020
#> [41] 174.8515 174.8515 174.8515 174.8515 174.8515 174.8515 174.8515 174.8515
#> [49] 175.5445 175.5445 175.5445 175.5445 175.5445 175.5445 175.5445 174.6040
#> [57] 174.6040 174.5544 174.5544 174.5544 174.5544 174.5544 174.5544 174.5544
#> [65] 174.8515 174.8515 174.8515 174.8515 174.8515 174.8515 175.0495 175.0495
#> [73] 175.0495 175.0495 175.0495 175.0495 175.0495 175.0495 175.0495 175.0495
#> [81] 174.7030
#> 
#> $coordinates
#>              x        y
#>  [1,] 21.18553 52.07559
#>  [2,] 21.18553 52.07559
#>  [3,] 21.18553 52.07559
#>  [4,] 21.18553 52.07559
#>  [5,] 21.18553 52.07559
#>  [6,] 21.18553 52.07559
#>  [7,] 21.18553 52.07559
#>  [8,] 21.18553 52.07559
#>  [9,] 21.18553 52.07559
#> [10,] 21.18553 52.07559
#> [11,] 21.18553 52.07559
#> [12,] 21.18553 52.07559
#> [13,] 21.18553 52.07559
#> [14,] 21.18553 52.07559
#> [15,] 21.18553 52.07559
#> [16,] 21.18553 52.07559
#> [17,] 21.18553 52.07559
#> [18,] 21.18553 52.07559
#> [19,] 21.18553 52.07559
#> [20,] 21.18553 52.07559
#> [21,] 21.18553 52.07559
#> [22,] 21.18553 52.07559
#> [23,] 21.18553 52.07559
#> [24,] 21.18553 52.07559
#> [25,] 21.18553 52.07559
#> [26,] 21.18553 52.07559
#> [27,] 21.18553 52.07559
#> [28,] 21.18553 52.07559
#> [29,] 21.18553 52.07559
#> [30,] 21.18553 52.07559
#> [31,] 21.18553 52.07559
#> [32,] 21.18553 52.07559
#> [33,] 21.18553 52.07559
#> [34,] 21.18553 52.07559
#> [35,] 21.18553 52.07559
#> [36,] 21.18553 52.07559
#> [37,] 21.18553 52.07559
#> [38,] 21.18553 52.07559
#> [39,] 21.18553 52.07559
#> [40,] 21.18553 52.07559
#> [41,] 21.18553 52.07559
#> [42,] 21.18553 52.07559
#> [43,] 21.18553 52.07559
#> [44,] 21.18553 52.07559
#> [45,] 21.18553 52.07559
#> [46,] 21.18553 52.07559
#> [47,] 21.18553 52.07559
#> [48,] 21.18553 52.07559
#> [49,] 21.18553 52.07559
#> [50,] 21.18553 52.07559
#> [51,] 21.18553 52.07559
#> [52,] 21.18553 52.07559
#> [53,] 21.18553 52.07559
#> [54,] 21.18553 52.07559
#> [55,] 21.18553 52.07559
#> [56,] 21.18553 52.07559
#> [57,] 21.18553 52.07559
#> [58,] 21.18553 52.07559
#> [59,] 21.18553 52.07559
#> [60,] 21.18553 52.07559
#> [61,] 21.18553 52.07559
#> [62,] 21.18553 52.07559
#> [63,] 21.18553 52.07559
#> [64,] 21.18553 52.07559
#> [65,] 21.18553 52.07559
#> [66,] 21.18553 52.07559
#> [67,] 21.18553 52.07559
#> [68,] 21.18553 52.07559
#> [69,] 21.18553 52.07559
#> [70,] 21.18553 52.07559
#> [71,] 21.18553 52.07559
#> [72,] 21.18553 52.07559
#> [73,] 21.18553 52.07559
#> [74,] 21.18553 52.07559
#> [75,] 21.18553 52.07559
#> [76,] 21.18553 52.07559
#> [77,] 21.18553 52.07559
#> [78,] 21.18553 52.07559
#> [79,] 21.18553 52.07559
#> [80,] 21.18553 52.07559
#> [81,] 21.18553 52.07559
#> 
#> $extents
#> NULL
#> 
#> $CRS
#> NULL
#> 

# Example 2 - set up the CRS to UTM and retrieve extents
read_hdr_envi(path_hdr, hFOV = 36.8, vFOV = 36.8, height = 45)
#> $dim
#> [1] 128 128  81
#> 
#> $wavelength
#>  [1] 500 505 510 515 520 525 530 535 540 545 550 555 560 565 570 575 580 585 590
#> [20] 595 600 605 610 615 620 625 630 635 640 645 650 655 660 665 670 675 680 685
#> [39] 690 695 700 705 710 715 720 725 730 735 740 745 750 755 760 765 770 775 780
#> [58] 785 790 795 800 805 810 815 820 825 830 835 840 845 850 855 860 865 870 875
#> [77] 880 885 890 895 900
#> 
#> $gain
#>  [1] 0.000000 0.000000 0.001086 0.001104 0.001147 0.001175 0.001160 0.001120
#>  [9] 0.001137 0.001155 0.001152 0.001147 0.001168 0.001207 0.001238 0.001248
#> [17] 0.001248 0.001277 0.001338 0.001372 0.001362 0.001349 0.001097 0.001131
#> [25] 0.001182 0.001253 0.001413 0.001726 0.001977 0.002439 0.001997 0.001656
#> [33] 0.001605 0.001633 0.001698 0.001758 0.001776 0.001768 0.001740 0.001717
#> [41] 0.002088 0.002225 0.002339 0.002429 0.002459 0.002431 0.002388 0.002362
#> [49] 0.002390 0.002473 0.002576 0.002645 0.002670 0.002656 0.002618 0.002066
#> [57] 0.002090 0.002145 0.002222 0.002324 0.002426 0.002511 0.002572 0.002586
#> [65] 0.001856 0.001868 0.001911 0.001993 0.002105 0.002230 0.002338 0.002419
#> [73] 0.002478 0.002522 0.002564 0.002600 0.002653 0.002728 0.002836 0.002964
#> [81] 0.003128
#> 
#> $irradiance
#>  [1] 175.9901 175.9901 174.2079 174.2079 174.2079 174.8020 174.8020 174.8020
#>  [9] 174.8020 174.8020 174.8020 174.8020 174.6040 174.6040 174.6040 174.6040
#> [17] 174.6040 174.6040 174.6040 174.6040 174.5544 174.5544 174.7030 174.7030
#> [25] 174.7030 174.7030 174.7030 174.7030 174.7030 174.7030 174.2079 174.2079
#> [33] 174.2079 174.2079 174.2079 174.2079 174.2079 174.2079 174.8020 174.8020
#> [41] 174.8515 174.8515 174.8515 174.8515 174.8515 174.8515 174.8515 174.8515
#> [49] 175.5445 175.5445 175.5445 175.5445 175.5445 175.5445 175.5445 174.6040
#> [57] 174.6040 174.5544 174.5544 174.5544 174.5544 174.5544 174.5544 174.5544
#> [65] 174.8515 174.8515 174.8515 174.8515 174.8515 174.8515 175.0495 175.0495
#> [73] 175.0495 175.0495 175.0495 175.0495 175.0495 175.0495 175.0495 175.0495
#> [81] 174.7030
#> 
#> $coordinates
#>              x        y
#>  [1,] 21.18553 52.07559
#>  [2,] 21.18553 52.07559
#>  [3,] 21.18553 52.07559
#>  [4,] 21.18553 52.07559
#>  [5,] 21.18553 52.07559
#>  [6,] 21.18553 52.07559
#>  [7,] 21.18553 52.07559
#>  [8,] 21.18553 52.07559
#>  [9,] 21.18553 52.07559
#> [10,] 21.18553 52.07559
#> [11,] 21.18553 52.07559
#> [12,] 21.18553 52.07559
#> [13,] 21.18553 52.07559
#> [14,] 21.18553 52.07559
#> [15,] 21.18553 52.07559
#> [16,] 21.18553 52.07559
#> [17,] 21.18553 52.07559
#> [18,] 21.18553 52.07559
#> [19,] 21.18553 52.07559
#> [20,] 21.18553 52.07559
#> [21,] 21.18553 52.07559
#> [22,] 21.18553 52.07559
#> [23,] 21.18553 52.07559
#> [24,] 21.18553 52.07559
#> [25,] 21.18553 52.07559
#> [26,] 21.18553 52.07559
#> [27,] 21.18553 52.07559
#> [28,] 21.18553 52.07559
#> [29,] 21.18553 52.07559
#> [30,] 21.18553 52.07559
#> [31,] 21.18553 52.07559
#> [32,] 21.18553 52.07559
#> [33,] 21.18553 52.07559
#> [34,] 21.18553 52.07559
#> [35,] 21.18553 52.07559
#> [36,] 21.18553 52.07559
#> [37,] 21.18553 52.07559
#> [38,] 21.18553 52.07559
#> [39,] 21.18553 52.07559
#> [40,] 21.18553 52.07559
#> [41,] 21.18553 52.07559
#> [42,] 21.18553 52.07559
#> [43,] 21.18553 52.07559
#> [44,] 21.18553 52.07559
#> [45,] 21.18553 52.07559
#> [46,] 21.18553 52.07559
#> [47,] 21.18553 52.07559
#> [48,] 21.18553 52.07559
#> [49,] 21.18553 52.07559
#> [50,] 21.18553 52.07559
#> [51,] 21.18553 52.07559
#> [52,] 21.18553 52.07559
#> [53,] 21.18553 52.07559
#> [54,] 21.18553 52.07559
#> [55,] 21.18553 52.07559
#> [56,] 21.18553 52.07559
#> [57,] 21.18553 52.07559
#> [58,] 21.18553 52.07559
#> [59,] 21.18553 52.07559
#> [60,] 21.18553 52.07559
#> [61,] 21.18553 52.07559
#> [62,] 21.18553 52.07559
#> [63,] 21.18553 52.07559
#> [64,] 21.18553 52.07559
#> [65,] 21.18553 52.07559
#> [66,] 21.18553 52.07559
#> [67,] 21.18553 52.07559
#> [68,] 21.18553 52.07559
#> [69,] 21.18553 52.07559
#> [70,] 21.18553 52.07559
#> [71,] 21.18553 52.07559
#> [72,] 21.18553 52.07559
#> [73,] 21.18553 52.07559
#> [74,] 21.18553 52.07559
#> [75,] 21.18553 52.07559
#> [76,] 21.18553 52.07559
#> [77,] 21.18553 52.07559
#> [78,] 21.18553 52.07559
#> [79,] 21.18553 52.07559
#> [80,] 21.18553 52.07559
#> [81,] 21.18553 52.07559
#> 
#> $extents
#>           xmin     xmax    ymin    ymax
#>  [1,] 512700.2 512730.1 5769447 5769477
#>  [2,] 512700.2 512730.1 5769447 5769477
#>  [3,] 512700.2 512730.1 5769447 5769477
#>  [4,] 512700.2 512730.1 5769447 5769477
#>  [5,] 512700.2 512730.1 5769447 5769477
#>  [6,] 512700.2 512730.1 5769447 5769477
#>  [7,] 512700.2 512730.1 5769447 5769477
#>  [8,] 512700.2 512730.1 5769447 5769477
#>  [9,] 512700.2 512730.1 5769447 5769477
#> [10,] 512700.2 512730.1 5769447 5769477
#> [11,] 512700.2 512730.1 5769447 5769477
#> [12,] 512700.2 512730.1 5769447 5769477
#> [13,] 512700.2 512730.1 5769447 5769477
#> [14,] 512700.2 512730.1 5769447 5769477
#> [15,] 512700.2 512730.1 5769447 5769477
#> [16,] 512700.2 512730.1 5769447 5769477
#> [17,] 512700.2 512730.1 5769447 5769477
#> [18,] 512700.2 512730.1 5769447 5769477
#> [19,] 512700.2 512730.1 5769447 5769477
#> [20,] 512700.2 512730.1 5769447 5769477
#> [21,] 512700.2 512730.1 5769447 5769477
#> [22,] 512700.2 512730.1 5769447 5769477
#> [23,] 512700.2 512730.1 5769447 5769477
#> [24,] 512700.2 512730.1 5769447 5769477
#> [25,] 512700.2 512730.1 5769447 5769477
#> [26,] 512700.2 512730.1 5769447 5769477
#> [27,] 512700.2 512730.1 5769447 5769477
#> [28,] 512700.2 512730.1 5769447 5769477
#> [29,] 512700.2 512730.1 5769447 5769477
#> [30,] 512700.2 512730.1 5769447 5769477
#> [31,] 512700.2 512730.1 5769447 5769477
#> [32,] 512700.2 512730.1 5769447 5769477
#> [33,] 512700.2 512730.1 5769447 5769477
#> [34,] 512700.2 512730.1 5769447 5769477
#> [35,] 512700.2 512730.1 5769447 5769477
#> [36,] 512700.2 512730.1 5769447 5769477
#> [37,] 512700.2 512730.1 5769447 5769477
#> [38,] 512700.2 512730.1 5769447 5769477
#> [39,] 512700.2 512730.1 5769447 5769477
#> [40,] 512700.2 512730.1 5769447 5769477
#> [41,] 512700.2 512730.1 5769447 5769477
#> [42,] 512700.2 512730.1 5769447 5769477
#> [43,] 512700.2 512730.1 5769447 5769477
#> [44,] 512700.2 512730.1 5769447 5769477
#> [45,] 512700.2 512730.1 5769447 5769477
#> [46,] 512700.2 512730.1 5769447 5769477
#> [47,] 512700.2 512730.1 5769447 5769477
#> [48,] 512700.2 512730.1 5769447 5769477
#> [49,] 512700.2 512730.1 5769447 5769477
#> [50,] 512700.2 512730.1 5769447 5769477
#> [51,] 512700.2 512730.1 5769447 5769477
#> [52,] 512700.2 512730.1 5769447 5769477
#> [53,] 512700.2 512730.1 5769447 5769477
#> [54,] 512700.2 512730.1 5769447 5769477
#> [55,] 512700.2 512730.1 5769447 5769477
#> [56,] 512700.2 512730.1 5769447 5769477
#> [57,] 512700.2 512730.1 5769447 5769477
#> [58,] 512700.2 512730.1 5769447 5769477
#> [59,] 512700.2 512730.1 5769447 5769477
#> [60,] 512700.2 512730.1 5769447 5769477
#> [61,] 512700.2 512730.1 5769447 5769477
#> [62,] 512700.2 512730.1 5769447 5769477
#> [63,] 512700.2 512730.1 5769447 5769477
#> [64,] 512700.2 512730.1 5769447 5769477
#> [65,] 512700.2 512730.1 5769447 5769477
#> [66,] 512700.2 512730.1 5769447 5769477
#> [67,] 512700.2 512730.1 5769447 5769477
#> [68,] 512700.2 512730.1 5769447 5769477
#> [69,] 512700.2 512730.1 5769447 5769477
#> [70,] 512700.2 512730.1 5769447 5769477
#> [71,] 512700.2 512730.1 5769447 5769477
#> [72,] 512700.2 512730.1 5769447 5769477
#> [73,] 512700.2 512730.1 5769447 5769477
#> [74,] 512700.2 512730.1 5769447 5769477
#> [75,] 512700.2 512730.1 5769447 5769477
#> [76,] 512700.2 512730.1 5769447 5769477
#> [77,] 512700.2 512730.1 5769447 5769477
#> [78,] 512700.2 512730.1 5769447 5769477
#> [79,] 512700.2 512730.1 5769447 5769477
#> [80,] 512700.2 512730.1 5769447 5769477
#> [81,] 512700.2 512730.1 5769447 5769477
#> 
#> $CRS
#> [1] "+proj=utm +zone=34 +datum=WGS84 +ellps=intl +units=m +no_defs"
#>