Last active
September 18, 2015 10:37
-
-
Save cindygis/12de9578e48808d38018 to your computer and use it in GitHub Desktop.
Converts a folder of MRSID files to TIFF files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
@date 2015/09/18 | |
@author Cindy Williams | |
Converts a folder of MRSID files to TIFF files. | |
For use as a standalone script. | |
''' | |
import arcpy | |
import os | |
sid_folder = r"C:\SidFolder" # Folder containing sid files | |
tif_folder = r"C:\TifFolder" # Folder to contain tif files | |
for root, dirnames, filenames in arcpy.da.Walk(folder, datatype="RasterDataset"): | |
for filename in filenames: | |
sid = os.path.join(root, filename) | |
arcpy.conversion.RasterToOtherFormat(sid, out_folder, "TIFF") | |
print("Converted " + sid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment