Page 156 - คู่มือการใช้งานโปรแกรมQGIS
P. 156

148



                           6.5.1 การคำนวณค่าดัชนีพืชพรรณ
                                1) ไปที่แถบเมนู Raster เลือก  Raster Calculator





















                           ในหน้าต่าง Raster Calculator  แถบ Result layer
                                2) Output layer กำหนดชื่อไฟล์ข้อมูลภาพที่ต้องการ
                                3) Output format เลือกประเภทไฟล์ข้อมูลภาพ

                                4) คลิก Selected Layer Extent  เพื่อกำหนดขนาดของภาพที่ต้องการ  ซึ่งค่าพิกัดจะไป
               ขึ้นที่  Xmin  Xmax  Ymin และ Ymax
                                5) Output CRS เลือกเป็น EPSG:32647 - WGS84 / UTM zone 47 N
                                6) ในช่อง Raster Calculator Expression  สามารถคำนวณค่า DN ของพิกเซลได้ โดย

               ดับเบิ้ลคลิกเลือก bands ของภาพที่ต้องการในแถบ Raster Bands และใช้เครื่องมือการคำนวณในแถบ
               Operators ที่โปรแกรมกำหนดให้ เช่น ต้องการคำนวณ สมการดัชนีพืชพรรณ (Normalized Difference
               Vegetation Index, NDVI)


                                                   ( Band Near Infrared – Band Red )
                                       NDVI  =
                                                   ( Band Near Infrared + Band Red )

                                โดยคำนวณตามสูตรเป็น

               ( "LC08_L1TP_130047_20200210_6bands@4" - "LC08_L1TP_130047_20200210_6bands@3")
                / ( "LC08_L1TP_130047_20200210_6bands@4" + "LC08_L1TP_130047_20200210_6bands@3")
                                คลิก OK
   151   152   153   154   155   156   157   158   159   160   161