<p>Hi Laura,</p>
<p><br />
</p>
<p>Expanding upon Stefano's example, I think that something like this may be what you are looking for:</p>
<p>;start envi if needed<br />
e = envi(/current) ;get current session of envi<br />
if (e eq !NULL) then e = envi(/headless);if doesnt exist start new headless session<br />
<br />
;directory with the data files<br />
dir = 'C:\some\location\with\data'<br />
;save first directory<br />
cd, current = first_dir<br />
;location where rasters are located<br />
cd, dir<br />
;search current directory for specific files<br />
files = FILE_SEARCH('*.dat')<br />
nfiles = n_elements(files)<br />
;initialize array to hold raster references<br />
rasters = objarr(nfiles)<br />
<br />
;open each raster<br />
for i=0, nfiles -1 do begin<br />
rasters[i] = e.OpenRaster(file)<br />
end<br />
<br />
;return to first directory<br />
cd, first_dir</p>
<p><br />
</p>
<p>Depending upon what you want to do with your data, you can always just make an array within IDL with all of your bands and you can pick pixel locations and plot it. If you want to build a time series you may be interested in the ENVIBuildTimeSeriesTask. Here is a link to the docs:</p>
<p>
http://www.exelisvis.com/...sTask.html</p>
<p>I hope this helps!</p>
<p><br />
</p>