Hi Sean!
I can get the asc files now

Thank you!
(after doing some changes to the batch- see below)
Just to check: I specified band=1 and format F10.3, as that is what I was doing to output one ascii file from Seadas using Band List selection. Is this the correct format to use?
Also, I would like to change the headings of the ascii file created to something like:
ncols 4320
nrows 2160
I can get these headings - instead of "chlorophyll raw" that appears by default - but I could not get them in 2 separate lines (i.e. write nrows in another line).
Is there a command for a line break in seadas? If yes, Where shall I insert it in the code below - in order to get:
"ncols 4320" in the 1st line
"nrows 2160" in the 2nd line
and the data starting in the 3rd line)?
I tried to insert commands:
\n
\r
\r\n
\x0D\x0A
\x0A
\x0D
echo
...
none worked... but maybe I was not inserting them in the right place within the code (?)
Do you think you could help me with this?
Thank you very much for all the help!
Ana
Script:
files=file_search('*.hdf',count=n)
print,'No. of files to process:', n
; print, FILE_BASENAME(files)
for i=0, n-1 do begin & $
ifile = files(i) & $
base_fname = FILE_BASENAME(ifile, '.L3_m') & $
load,ifile,ftype='SeaWiFS',prod_name=chlor_a & $
; print, i
; Output the data in generic ascii format
ascii = base_fname + '.asc' & $
out_ascii, band=1,format='(F10.3)', titles=['ncols 4320 &$
nrows 2160'], ascii & $
clear_up & $
endfor