Introduction to IDL®

Introduction to IDL®

<p>Introduction to IDL<sup style="top: -1.8309em;">® </sup></p><p>Revised for Print March, 2016 <br>©2016 Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation. All rights reserved. ENVI and IDL are registered trademarks of Harris Corporation. All other marks are the property of their respective owners. </p><p>This document is not subject to the controls of the International Traffic in Arms Regulations <br>(ITAR) or the Export Administration Regulations (EAR). </p><p><strong>Contents </strong></p><p></p><ul style="display: flex;"><li style="flex:1"><strong>1</strong></li><li style="flex:1"><strong>Introduction To IDL </strong></li><li style="flex:1"><strong>5</strong></li></ul><p></p><p>55666677777<br>1.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <br>1.1.1 What&nbsp;is ENVI? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.2 ENVI&nbsp;+ IDL, ENVI, and IDL .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.3 ENVI&nbsp;Resources .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.4 Contacting&nbsp;Harris Geospatial Solutions&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.5 Tutorials&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.6 Training&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.7 ENVI&nbsp;Support .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.8 Contacting&nbsp;Technical Support .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.9 Website&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.10 IDL&nbsp;Newsgroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . </p><p><strong>23</strong></p><ul style="display: flex;"><li style="flex:1"><strong>About This Course </strong></li><li style="flex:1"><strong>9</strong></li></ul><p></p><p>99<br>2.1 Manual&nbsp;Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <br>2.1.1 Programming&nbsp;Style .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <br>2.2 The&nbsp;Course Files&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;11 <br>2.2.1 Installing&nbsp;the Course Files .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;11 <br>2.3 Starting&nbsp;IDL .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;11 <br>2.3.1 Windows&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;11 2.3.2 Max&nbsp;OS X&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;11 2.3.3 Linux&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;12 </p><p></p><ul style="display: flex;"><li style="flex:1"><strong>A Tour of IDL </strong></li><li style="flex:1"><strong>13 </strong></li></ul><p></p><p>3.1 Overview .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;13 3.2 Scalars&nbsp;and Arrays&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;13 3.3 Reading&nbsp;Data from Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;15 3.4 Line&nbsp;Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;15 3.5 Surface&nbsp;Plots .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;17 3.6 Contour&nbsp;Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;18 3.7 Displaying&nbsp;Images .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;19 3.8 Exercises .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;21 3.9 References&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;21 </p><p></p><ul style="display: flex;"><li style="flex:1"><strong>4</strong></li><li style="flex:1"><strong>IDL Basics </strong></li><li style="flex:1"><strong>23 </strong></li></ul><p></p><p>4.1 IDL&nbsp;Directory Structure&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;23 4.2 The&nbsp;IDL Workbench&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;24 4.3 Exploring&nbsp;the IDL Workbench&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;25 4.4 Projects&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;27 4.5 Working&nbsp;Directory .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;28 4.6 Preferences&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;29 4.7 Search&nbsp;Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;31 </p><p>34<br>4.8 The&nbsp;IDL Help System&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;31 4.9 References&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;32 </p><p></p><ul style="display: flex;"><li style="flex:1"><strong>5</strong></li><li style="flex:1"><strong>Line, Bar, and Scatter Plots </strong></li><li style="flex:1"><strong>35 </strong></li></ul><p></p><p>5.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;35 5.2 Graphics&nbsp;Routines .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;35 5.3 Reflectance&nbsp;Spectra .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;36 <br>5.3.1 Plotting&nbsp;Multiple Datasets&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;37 5.3.2 Adding&nbsp;Annotations to Graphics&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;38 5.3.3 Saving&nbsp;Graphics Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;38 <br>5.4 Boulder&nbsp;Temperature Data&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;39 5.5 Scatterplots&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;40 5.6 Bar&nbsp;Plots .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;41 5.7 Error&nbsp;Plots .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;43 5.8 The&nbsp;Sunspot Cycle&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;44 5.9 Histogram&nbsp;Plots .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;45 5.10 Positioning&nbsp;Plots .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;46 5.11 Exercises&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;48 5.12 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;48 </p><p></p><ul style="display: flex;"><li style="flex:1"><strong>6</strong></li><li style="flex:1"><strong>Data Structures </strong></li><li style="flex:1"><strong>49 </strong></li></ul><p></p><p>6.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;49 6.2 Variables .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;49 <br>6.2.1 Variable&nbsp;Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;49 6.2.2 System&nbsp;Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;50 <br>6.3 Data&nbsp;Types .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;50 <br>6.3.1 Type&nbsp;Behaviors in IDL .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;52 6.3.2 Exception&nbsp;to Type Promotion .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;53 6.3.3 Null&nbsp;Variables .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;54 <br>6.4 Arrays&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;54 <br>6.4.1 Array&nbsp;Subscripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;56 6.4.2 Multidimensional&nbsp;Arrays .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;57 6.4.3 Single-Index&nbsp;Subscripting .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;58 6.4.4 The&nbsp;Where Function&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;58 <br>6.5 Lists&nbsp;and Hashes&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;59 6.6 Structures&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;61 6.7 Strings&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;62 6.8 Pointers&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;64 6.9 Objects .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;64 6.10 Exercises&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;65 6.11 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;66 </p><p></p><ul style="display: flex;"><li style="flex:1"><strong>7</strong></li><li style="flex:1"><strong>Programming </strong></li><li style="flex:1"><strong>67 </strong></li></ul><p></p><p>7.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;67 7.2 Programs&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;67 <br>7.2.1 Executive&nbsp;Commands .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;68 7.2.2 Main&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;69 7.2.3 Procedures&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;70 7.2.4 Functions&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;70 7.2.5 The&nbsp;COMPILE_OPT statement&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;71 <br>7.3 Parameters&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;72 <br>7.3.1 Parameter&nbsp;Passing .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;72 <br>7.4 Calling&nbsp;Mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;74 7.5 Operators&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;75 </p><p>45<br>7.5.1 Compound&nbsp;Operators .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;79 7.5.2 Array&nbsp;Operators .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;79 7.5.3 Matrix&nbsp;Multiplication .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;80 <br>7.6 Control&nbsp;Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;80 <br>7.6.1 Compound&nbsp;Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;80 <br>7.7 Conditional&nbsp;Statements .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;81 <br>7.7.1 If&nbsp;Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;81 7.7.2 Case&nbsp;Statements .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;82 7.7.3 Switch&nbsp;Statements .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;82 7.7.4 The&nbsp;Definition of True and False&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;83 <br>7.8 Loop&nbsp;Statements .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;84 <br>7.8.1 For&nbsp;Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;84 7.8.2 While&nbsp;Loops .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;84 7.8.3 Repeat&nbsp;Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;85 7.8.4 Foreach&nbsp;loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;86 <br>7.9 Jump&nbsp;Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;86 <br>7.9.1 The&nbsp;Break Statement&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;86 7.9.2 The&nbsp;Continue Statement .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;86 <br>7.10 IDL&nbsp;Batch Files .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;87 7.11 Timing&nbsp;with TIC and TOC&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;87 7.12 Programming&nbsp;tips .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;88 7.13 Exercises&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;88 7.14 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;88 </p><p><strong>89</strong></p><ul style="display: flex;"><li style="flex:1"><strong>Images </strong></li><li style="flex:1"><strong>91 </strong></li></ul><p></p><p>8.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;91 8.2 What&nbsp;is an Image?&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;91 8.3 HST&nbsp;Imagery of the Carina Nebula .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;92 8.4 Truecolor&nbsp;JPEG Image .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;95 8.5 Landsat&nbsp;7 ETM+ Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;97 8.6 Exercises .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;100 8.7 References&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;101 </p><p></p><ul style="display: flex;"><li style="flex:1"><strong>File Access </strong></li><li style="flex:1"><strong>103 </strong></li></ul><p></p><p>9.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;103 9.2 File&nbsp;Types: Text and Binary&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;103 9.3 File&nbsp;Manipulation Routines&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;103 9.4 IDL&nbsp;SAVE files&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;106 9.5 Standard&nbsp;File Types&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;107 <br>9.5.1 Wrappers&nbsp;for Standard Format Files&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;109 9.5.2 User-contributed&nbsp;Routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;109 <br>9.6 Reading&nbsp;Text and Binary Files&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;110 9.7 Low-level&nbsp;File Routines&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;111 <br>9.7.1 Opening&nbsp;and Closing Files .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;112 9.7.2 Logical&nbsp;Unit Numbers&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;112 9.7.3 Compressed&nbsp;and XDR-format files&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;113 9.7.4 Byte&nbsp;Ordering in Binary Files .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;113 9.7.5 Reading&nbsp;and Writing Text Files .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;114 9.7.6 Reading&nbsp;Free Format ASCII Files .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;114 9.7.7 Reading&nbsp;Explicitly Formatted ASCII Files .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . .&nbsp;115 <br>9.8 Writing&nbsp;Free and Explicitly Formatted ASCII Files . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;116 <br>9.8.1 Reading&nbsp;and Writing Binary Files&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;117 <br>9.9 Exercises .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;118 9.10 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;118 </p><p>5</p><p></p><ul style="display: flex;"><li style="flex:1"><strong>10 Surface and Contour Poots </strong></li><li style="flex:1"><strong>119 </strong></li></ul><p></p><p>10.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;119 <br>10.1.1 Graphics&nbsp;Routines .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;119 <br>10.2 Spatial&nbsp;Rainfall Distribution .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;120 <br>10.2.1 Data&nbsp;Preparation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;120 10.2.2 Shaded&nbsp;Surface Plot&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;121 10.2.3 Filled&nbsp;Contour Plot&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;122 10.2.4 Combined&nbsp;Surface and Contour Plot&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;123 <br>10.3 Digital&nbsp;Elevation Models .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;124 <br>10.3.1 Wire&nbsp;Mesh Surface Plot&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;126 10.3.2 Three-dimensional&nbsp;Contour Plot&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;127 10.3.3 Texture-mapped&nbsp;Surface Plot&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;128 10.3.4 A&nbsp;Remark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;129 <br>10.4 Exercises&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;130 10.5 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;130 </p><p></p><ul style="display: flex;"><li style="flex:1"><strong>11 Analysis </strong></li><li style="flex:1"><strong>133 </strong></li></ul><p></p><p>11.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;133 11.2 Interpolation&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;133 <br>11.2.1 Interpolation&nbsp;with Cubic Splines&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;133 11.2.2 Gridding&nbsp;Irregularly Spaced Data .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;135 <br>11.3 Curve&nbsp;Fitting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;137 <br>11.3.1 Least-squares&nbsp;Linear Fit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;137 11.3.2 Least-square&nbsp;User-defined Fit&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;139 <br>11.4 Signal&nbsp;Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;141 11.5 Image&nbsp;Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;143 <br>11.5.1 Histogram&nbsp;Equalization .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;143 11.5.2 Image&nbsp;Sharpening .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;145 11.5.3 Edge&nbsp;Enhancement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;146 11.5.4 Fourier&nbsp;Filtering .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;147 <br>11.6 Exercises&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;148 11.7 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;149 </p><p></p><ul style="display: flex;"><li style="flex:1"><strong>12 Map Projections </strong></li><li style="flex:1"><strong>151 </strong></li></ul><p></p><p>12.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;151 <br>12.1.1 Map&nbsp;Projections .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;151 12.1.2 Graphics&nbsp;Routines .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;151 <br>12.2 A&nbsp;Simple Map&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;152 12.3 Landsat&nbsp;7 ETM Image, Georeferenced&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;156 12.4 General&nbsp;Map Projection Routines .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;158 12.5 Exercises&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;159 12.6 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .&nbsp;159 </p><p><strong>Chapter 1 </strong></p><p><strong>Introduction To IDL </strong></p><p><strong>Contents </strong></p><p><strong>1.1 Introduction&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . </strong></p><p>1.1.1 What&nbsp;is ENVI? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.2 ENVI&nbsp;+ IDL, ENVI, and IDL .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.3 ENVI&nbsp;Resources .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.4 Contacting&nbsp;Harris Geospatial Solutions&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . 1.1.5 Tutorials&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.6 Training&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.7 ENVI&nbsp;Support .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.8 Contacting&nbsp;Technical Support .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.9 Website&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.10 IDL&nbsp;Newsgroup .&nbsp;. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . </p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    165 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us