Hi all, I'm trying to write a foreach loop to convert all bands in an existing ENVI Raster into output PNGs. When I run the following loop: "foreach i, bandGet do begin Subset = ENVISubsetRaster(raster, bands=[i]) print, (baseName + bNames[i]) ; Creating the PNG routine from ENVI Docs Task = ENVITask('ExportRasterToPNG') Task.INPUT_RASTER = Subset Task.OUTPUT_RASTER_URI = (baseName + bNames[i]) Task.Execute Task.output_raster = outName end" I get the exact filenames I want printed, but no files are written. I also get a message saying "This task has no parameter named OUTPUT_RASTER_URI" - is that a feature introduced in a newer version of ENVI? Any pointers to get this working in ENVI 5/2/IDL 8.4 would be greatly appreciated!
|