1. Read the file into the data variable. Run the command to check whether the variable contains the data variable.
File = dialog_pickfile (Path = 'e: \ trainning2013 \ chapter05 \ data ')
Openr, Lun, file,/get
Fname = bytarr (12)
Readu, Lun, fname
Print, fname
Print, string (fname)
Point_lun, Lun, 14
_ 1N = 0
Readu, Lun, _ 1N
Print, _ 1N
Readu, Lun, _ 2n
Print, _ 2n
Point_lun, Lun, 58
Year = 0
Readu, Lun, year
Print, year
Point_lun, Lun, 1201*2
Data = bytarr (1,,1201)
Readu, Lun, Data
TV, data [*, *, 0]
TV, congrid (data, 400,400)
2. Start ENVI and enter envi in the idl console. There are three methods:
(1) import data variables in the file-import from IDL variable of ENVI
(2) Enter envi_enter_data and data in the ID. The effect is the same.
(3) ENVI is directly started to read files. The first time the binary program is read, the header file information will be edited. Enter the information according to the editing parameters.
Three methods for reading fengyun2 files (mainly used to learn IDL to read images)