[gdal-dev] GDAL Landsat Dirver

liminlu0314 liminlu0314 at 163.com
Mon Jun 1 05:53:33 PDT 2015


Hi All , 
       I am a user of GDAL. During the appliance of GDAL, I found that GDAL
doesn’t support the formats of Landsat 5, Landsat 7 and Landsat 8 data
products. Therefore I wrote a format-extension for GDAL to support the
formats of Landsat 5, Landsat 7 and Landsat 8 data products. I wondered
whether this format-extension could be adopted by GDAL. 
       The input data path is the metadata of Landsat, which are generally
named as *_MTL.txt. Three sub-datasets are included, namely Panchromatic
data, Reflective data and Thermal Infrared Sensor (TIRS) data.
       The format of sub-datasets are as following:
LANDSAT:1:F:\Data\LandSat\LS8_O_20131022_032724_000000_128035_GEOTIFF_L4\LO81280352013295BJC00_MTL.txt
       Note:
       LANDSAT : identifier
       1:index of data type (0 means Panchromatic, 1means Reflective, 2
means TIRS).
       
The attachment is the source code that I wrote for Landsat data formats.
The screenshot below is the zip file structure of Landsat 5 and 8. The zip
file structure of Landsat 7 is similar to that of Landsat 5.

  <http://osgeo-org.1560.x6.nabble.com/file/n5208438/1.jpg> 
Fig 1. The zip file structure of Landsat 5 and Landsat 7
  <http://osgeo-org.1560.x6.nabble.com/file/n5208438/2.jpg> 
Fig 2. The zip file structure of Landsat 8

The short name of data driver that I newly added is LANDSAT. Three
sub-datasets are included, namely Panchromatic data, Reflective data and
TIRS data.

Below is an example. The input file is a Landsat 8 data named ‘*_MTL.txt’.
Fig 3 is the output information by gdalinfo. It can be seen that four
sub-datasets are included. 
  <http://osgeo-org.1560.x6.nabble.com/file/n5208438/3.jpg> 
Fig 3. Output information of gdalinfo.
F:\Work\GDAL\gdal-1.11.2_new\gdal-1.11.2>gdalinfo.exe
F:\Data\LandSat\LS8_O_2013
1022_032724_000000_128035_GEOTIFF_L4\LO81280352013295BJC00_MTL.txt -nomd
Driver: LANDSAT/LANDSAT 7/8 GeoTiff with Metadata
Files:
F:\Data\LandSat\LS8_O_20131022_032724_000000_128035_GEOTIFF_L4\LO81280352013295BJC00_MTL.txt
Size is 512, 512
Coordinate System is `'
Subdatasets:
 
SUBDATASET_1_NAME=LANDSAT:0:F:\Data\LandSat\LS8_O_20131022_032724_000000_128035_GEOTIFF_L4\LO81280352013295BJC00_MTL.txt
  SUBDATASET_1_DESC=LANDSAT:Panchromatic
 
SUBDATASET_2_NAME=LANDSAT:1:F:\Data\LandSat\LS8_O_20131022_032724_000000_128035_GEOTIFF_L4\LO81280352013295BJC00_MTL.txt
  SUBDATASET_2_DESC=LANDSAT:Reflective
 
SUBDATASET_3_NAME=LANDSAT:2:F:\Data\LandSat\LS8_O_20131022_032724_000000_128035_GEOTIFF_L4\LO81280352013295BJC00_MTL.txt
  SUBDATASET_3_DESC=LANDSAT:Thermal
 
SUBDATASET_4_NAME=LANDSAT:3:F:\Data\LandSat\LS8_O_20131022_032724_000000_128035_GEOTIFF_L4\LO81280352013295BJC00_MTL.txt
  SUBDATASET_4_DESC=LANDSAT:Quality
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  512.0)
Upper Right (  512.0,    0.0)
Lower Right (  512.0,  512.0)
Center      (  256.0,  256.0)

Fig 4 is the information of the second sub-dataset (i.e., the Reflective
data )output by gdalinfo. It can be seen that eight sub-datasets are
included.

  <http://osgeo-org.1560.x6.nabble.com/file/n5208438/4.jpg> 
Fig 4. Output information of gdalinfo.


Best regards 




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-Landsat-Dirver-tp5208438.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list