Three methods for reading fengyun2 files (mainly used to learn IDL to read images)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.