next up previous contents index
Next: Example for user defined Up: Wildcards Previous: Wildcards

Wildcard concept

 

If you want for example to analyse a matrix you need the matrix itself, its projection and a directory where the results will be saved. Using wildcards you need not to enter all three pathnames, but only one basename. Therefore the three components have to follow a certain naming convention defined by the according wildcard. A matrix filename must have the extension .mtx by default and furthermore it must be saved in a directory that has the same name as the basename of the matrix. If you want to load the matrix 220Th.mtx it must be in the directory ./220Th. The default wildcard for matrices is

*mtx !f/!t.mtx

which is resolved in table 3.4 on page [*] for the matrix

/matrix1/220Th/220Th.mtx


 
Table 3.4: Resolved wildcards for the matrix /matrix1/220Th/220h.mtx.
!f /matrix1/220Th/220Th
/ /
!t 220Th
.mtx .mtx

Besides the matrix you need the projection to the y-axis which must obey the wildcard *prospc and is according to the default values for the example above:

/matrix1/220Th/220Th.pry

The directory must obey the wildcard *cutdir (see table 3.6 p. [*]) and will be made by TV if not existing. Its pathname is:

/matrix1/220Th/220Th.cutdir

If you have the necessary files you can start analysing your matrix with the command

tv > cut env < path >  

which performs the opening and loading of your data automatically.

The filename for matrices (*mtx) is composed of the full absolute directory name (!f), a slash (/), matrix basename (!t) and the suffix .mtx.

For the meaning of the wildcard characters see table 3.5 on page [*]. The wildcard characters mus be preceded by an ! (exclamation mark).


 
Table 3.5: Wildcard characters.
Wildcard Meaning Example
f full filename /matrix1/220Th/220Th.tig0
t filename (tail) 220Th.tig0
h absolute path (!f-!t) /matrix1/220Th/
r basename (without last ext) 220Th
e extension .mtx

The wildcards which are defined by default are listed in table 3.6 on page [*]. You can print a list of all wildcards with the command:

tv > wildcard status.  


 
Table 3.6: Default wildcard definitions.
Wildcard Definition Datatype
*cutdir !f/!t.cutdir Cut directory
**cutcal !f/!t.cut.cal Cut calibration
**cutgat !f/!t.gate Cut gate marker
**cutspc !f/!t.cut Cut spectrum
**cutspcgat !f/!t.gt Cut spectrum gate marker
**cutspcbg !f/!t.bg Cut spectrum background gate marker
**cutspccl !f/!t.cl  
**cutspccr !f/!t.c  
**fit !h/!t.fit Fit marker
**cal !r.cal Calibration
**plt !r.fig Plot
**rcl !r.rcl Recalibration marker
**mtx !f/!t.mtx Matrix
**prospc !f/!t.pry Projection spectrum
**procal !f/!t.pry.cal Calibration for projection spectrum

You can combine any entries of table 3.5 by using the pipe character " ". This character works like the pipe character | in unix shells, as shown in the following example, where the left wildcard expression will be evaluated and given as input to the right expression. If you are in the directory /matrix1/220Th and enter

tv > cut env 220Th.test

the modified wildcard for matrices

*mtx !f/!t !r.mtx

will result in a matrix filename:

/matrix1/220Th/220Th.test/220Th.mtx.

You can define own wildcards or alter existing settings. For example to set the modified matrix wildcard from the example above enter:

tv > wildcard enter *mtx ``!f/!t !r.mtx''  

The second argument should contain the leading asterisk (*). Be sure to encapsulate the second argument in double quotes. Also you can change existing wildcards with the wildcard enter command. To delete a wildcard use the command:

tv > wildcard delete < wildcard >


next up previous contents index
Next: Example for user defined Up: Wildcards Previous: Wildcards
Andreas Fitzler
7/13/2000