next up previous contents index
Next: ls-file-mechanism Up: Loading and saving of Previous: Loading and saving of

I/O with multiple spectra

To load multiple spectra with the get command, you may use filename patterns. TV expands the patterns (like a shell) and loads all matching files. As example we load spectra prge0.0121 ...prge5.0121.

tv > spectrum prge[012345].*

TV distributes them to buffers #0 to #5 automatically if these are free:

tv> spectrum ./prge0.0121'8k.lc:2 read to #0

tv> spectrum ./prge1.0121'8k.lc:2 read to #1

tv> spectrum ./prge2.0121'8k.lc:2 read to #2

tv> spectrum ./prge3.0121'8k.lc:2 read to #3

tv> spectrum ./prge4.0121'8k.lc:2 read to #4

tv> spectrum ./prge5.0121'8k.lc:2 read to #5 TV has read the spectrum files to buffers #0 to #5, using the format 8k.lc:2. The second, more general way to load multiple spectra is the ls-file-mechanism (see section 4.3.2 p. [*]), which loads (or performs other operations on) spectra, listed in a special file (the ls-file).The third alternative is the loading of multiple spectra using wildcards (see section 3.12.2 p. [*]).



Andreas Fitzler
7/13/2000