Next: 4.5 Converting data Up: 4 Using the programmes Previous: 4.3 Option 3 -

4.4 Filename styles

To aid the user and to minimise the amount of time spent entering information, part of the design of the programme includes styles of filenames. This section will contain a description of what is meant by a filename style and how to make best use of this facility.

This facility was designed around the way the filenames are structured in the raw data files from the UKQCD simulations. These files tend to be of the form


C60L4320L00    C62L4320L00    C64L4320L00
C60L4320L01    C62L4320L01    C64L4320L01
C60L4320L02    C62L4320L02    C64L4320L02     etc...

where L4320L relates to the pion mass.

There is an obvious underlying structure to this of

C <configuration> L4320L <timeslice>

When using the programmes in menu to extract the physical properties, the base and extension tend to stay constant throughout a number of executions, with either the first or second number altering. It would therefore make sense to combine this into the programme to free the user from entering filenames manually and being tied up during the execution of the programme.

For example, if the files are named as those mentioned above, the dialogue would be as follows:


 You will be asked to enter in the input
    filenames in the following form:
     base   number1   ext   number2
  
 If you do not wish anything in base or 
  ext then simply press return and ignore it
 If it is a number category you do not 
  require then type -1
  
 the base 
C
 the first number of number1 (integer please) 
60
 the last number of number1 
64
 the step between the numbers (integer) 
2
 the extension 
L4320L
 the first number of number2
0
 the last number of number2 
2
 the step between the numbers 
1

This will produce the required filenames. For verification the filenames will be displayed as they are opened.

As mentioned in the above dialogue it is possible to vary the style of filenames by pressing return when prompted for a string and -1 when prompted for an integer.

The best way to use this facility is always to have filenames in the form of

<Base> configuration number <extension> timeslice number

to speed up the use of programmes and to avoid renaming files. For an easy way of renaming files see section 4.6 on shell scripts.


epccssp@epcc.ed.ac.uk
Fri Oct 7 10:31:36 BST 1994