I want to use IDL to open two rasters, clip one of the rasters according to the size of the other, and then save the new raster. I encountered an error using ENVIraster. The example code compiles, but generates an execution error: "ENVIRASTER::INIT: Incorrect number of arguments" on the line
newRaster = ENVIRaster(origData, URI=newFile, NBANDS=1)
The example code is from here:
http://www.exelisvis.com/docs/enviRaster.html
Any advice how to fix this is appreciated.