ListRasterProducts
Résumé
Returns a list of paths to the raster products associated with a metadata file.
Discussion
This function returns the list of paths to the raster products that are associated with a given metadata file path for any given supported sensor type such as Satellite or SAR.
Syntaxe
ListRasterProducts(metadata_file_path)
| Le paramètre | Explication | Type de données |
|---|---|---|
|
metadata_file_path |
The path to the metadata file. |
String |
Valeur de retour
| Type de données | Explication |
|---|---|
|
String |
The list of paths to all the raster products for the An empty list is returned if the data type is not supported, or when there are no raster products associated with the metadata file. |
Exemple de code
ListRasterProducts example
List the raster products associated with Landsat 8 metadata file (*_MTL.txt).
import arcpy
arcpy.ListRasterProducts(r'c:\temp\LC80390382013135LGN01\LC80390382013135LGN01_MTL.txt')
# For example:
# ['c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Multispectral',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\QA',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Panchromatic',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Multiband',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Thermal',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Pansharpen',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Water',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Vegetation',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\SnowIce',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Cirrus',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Cloud',
# 'c:\\temp\\LC80390382013135LGN01\\LC80390382013135LGN01_MTL.txt\\Landcover']