The result of the:
let filelist = spawn("ls -1 *CNRM*.nc")
is a string array variable on an X axis, and acts like other data arrays:
will list out all the filenames. (Note the "-1 flag to "ls" - this puts each filename on a separate line.) To use this list of filenames:
-- If you want to consider all these dataset as parts of one big dataset, consider the "define data /aggregate" commands. For this command you can just give it the string array variable ("filelist" in the above example). You will need to choose the appropriate aggregation options depending on what your data files contain and how you want them aggregated.
-- If you just want to open them as separate datasets, the syntax would be:
to open the first one,
to open the second one, etc.
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."