Code covered by the BSD License  

Highlights from
READ_ENVIHDR

3.0

3.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 2.02 KB File ID: #15630

READ_ENVIHDR

by Ian Howat

 

19 Jul 2007 (Updated 26 Jul 2007)

Read and return ENVI image file header information.

| Watch this File

File Information
Description

INFO = READ_ENVIHDR('HDR_FILE') reads the ASCII ENVI-generated image header file and returns all the information in a structure of parameters.

  Example:
  >> info = read_envihdr('my_envi_image.hdr')
  info =
         description: [1x101 char]
             samples: 658
               lines: 749
               bands: 3
       header_offset: 0
           file_type: 'ENVI Standard'
           data_type: 4
          interleave: 'bsq'
         sensor_type: 'Unknown'
          byte_order: 0
            map_info: [1x1 struct]
     projection_info: [1x102 char]
    wavelength_units: 'Unknown'
          pixel_size: [1x1 struct]
          band_names: [1x154 char]

Acknowledgements
This submission has inspired the following:
ENVI file reader/writer
MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
08 Dec 2011 Jaroslaw Tuszynski

Uses a little outdated version of MATLAB. Also does not seem to be able to read multi-line description or info fields.

Please login to add a comment or rating.
Updates
26 Jul 2007

-Fixed problem with reading image coordinates when a point other than the upper left corner is in the header. The fields info.map_info.ulx and uly are now mapx and mapy to reflect this.

Tag Activity for this File
Tag Applied By Date/Time
data import Ian Howat 22 Oct 2008 09:19:43
data export Ian Howat 22 Oct 2008 09:19:43
envi Ian Howat 22 Oct 2008 09:19:43
io Ian Howat 22 Oct 2008 09:19:46
import Ian Howat 22 Oct 2008 09:19:46
read Ian Howat 22 Oct 2008 09:19:46
header Ian Howat 22 Oct 2008 09:19:46
metadata Ian Howat 22 Oct 2008 09:19:46

Contact us at files@mathworks.com