Command IPAR
| GSI | Biophysics | Command subsystem |

IPAR

name
values
/
delete
noconfirm
read
save
path()
dir()
file()
list
graphic
zeroes
user()
pds()
member()
debug

Purpose

Change, save or list global parameters

Parameters

name

Name of the global parameter. If name=* all global parameters are affected. Wildcard patterns are supported. Except for deleting or saving, each name may be followed by an argument containing the indices of each dimension to be considered, given by an implicit loop of the form 'i..j BY n' with optional values j and n. Default stepsize is n = 1. If omitted or replaced by an asterisk, all indices of the corresponding dimension are affected.

values

List of values to be assigned to the global parameter. Each numerical constant may be preceded by a repetition factor enclosed in parentheses. Repetition factors for character strings are not yet supported. Arrays are filled with the right-most sub- script varying most rapidly (C and PL/I convention).

delete

Delete the specified global parameter(s) after confirmation. Only parameters declared with the command IPARDCL can be deleted interactively.

noconfirm

Suppress confirmation for deletion.

read

Read global parameter values from a file specified by path(pp), dir(dd) and file(ff)

save

Save global parameter values to a file specified by path(pp), dir(dd) and file(ff) You will need write permission for the output file.

path(pp),dir(dd),file(ff),user(),pds(),mem()

Input and output file names are built like this: <pp>/<dd>/<ff>.
user() is an alias for path(), pds() for dir() and mem() for file(), respectively. These command parameters exist for backward compatibility only and should not be used.
Default file name for read or save is the first name of the parameter list. If all parameters are requested, the default file name is yymmdd, where 'yy' represents the current year, 'mm' the month, and 'dd' the day.
The default file extension is .ipar

list

Lists the value(s) of the global parameter(s) on terminal

graphic

Lists the value(s) of the global parameter(s) on the current graphics window, if any.
Not yet implemented.

zeroes

Not yet implemented.

debug

Debug switch. Lots of output !

Function

Remark

Except for the read option all global parameters must have been declared before.
If no values or keywords are entered with the command, the requested parameters (names, bounds, types) are listed. A comment declared for a parameter is listed or written to a data set, too.

Examples

IPAR
List all parameters declared so far.
IPAR  A  0
The value 0 is assigned to parameter A.
IPARDCL A(3,3)
IPAR  A(1..2,1..2) '2.7,(2)1E3,-0.25E-2'
The values 2.7, 1000, 1000 and -0.0025 are assigned to A(1,1), A(1,2), A(2,1) and A(2,2).
     IPARDCL a(3) / type(4)
     IPAR a(2) 1
     IPAR a(*) / list
gives
     A(1..3) double
     0 1 0

| GSI | Biophysics | Command subsystem |
Last updated: M.Kraemer@gsi.de, 3-Aug-1999

Impressum Data privacy protection