Demo entry 2842031

convert NDVI HDF rasters

   

Submitted by anonymous on Oct 10, 2015 at 08:47
Language: Python 3. Code size: 329 Bytes.

#convert NDVI HDF rasters to GeoTiffs using hdfTOtif

inFol = "D:/Test/NDVI_SPOT_VIETNAM/Out/"
outFol = "D:/Test/NDVI_SPOT_VIETNAM/OutTiffs/"

for filex in os.listdir(inFol):
    extent = [800,2300,300,2500]
    nameHDF = inFol + filex
    outFile = outFol + filex[:-3] + "tif"
    funcs.hdfTOtif(nameHDF,outFile,extent)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).