next up previous 524
Next: Strings
Up: Parameters
Previous: Defaults


Globals

KAPPA stores a number of global parameters that are used as defaults to reduce typing in response to prompts. Global means that they are shared between applications. The most common is the last dataset (usually NDF) written or accessed. In the example above, this was horsehead.sdf. If you just press <CR> in response to the prompt, the global value is unchanged. Only when you modify the parameter and the application completes without error is the global value updated.

All global parameters are stored in the HDS file $ADAM_USER/GLOBAL.sdf, or $HOME/adam/GLOBAL.sdf if the $ADAM_USER environment variable is not defined. The full list is given below.

 GLOBAL.DATA_ARRAY    --  Last NDF or foreign data file accessed or written.
 GLOBAL.GRAPHICS_DEVICE    --  Current graphics workstation.
 GLOBAL.INTERACTIONMODE    --  Current interaction mode.
 GLOBAL.LUT    --  Last lookup table file accessed or written.
 GLOBAL.TRANSFORM    --  Current transformation structure.

KAPPA uses the last DATA_ARRAY written or accessed as the suggested default value for the next prompt for an NDF structure or foreign data format. The same applies to the current lookup table and transformation structure. However, the remaining, including the graphics global parameter are defaulted--you will not be prompted. Details of how to control these parameters are given in the relevant sections.

The values of all global parameters may be inspected with the GLOBALS task. You can make them undefined using NOGLOBALS.

     ICL> globals
     The current data file                : @/home/dro/jkt/ccdpic
     The current graphics device is       : @ps_l
     The current lookup table file is     : @$KAPPA_DIR/spectrum_lut
     The current transformation is        : @/home/dro/deform/warpit
     The current interaction mode is      : <undefined>

In the above example no interaction mode is defined. The next time you call an application which uses the interaction mode you would be prompted for a value. (Under normal circumstances you will not have to enter the @ prefix yourself.)


next up previous 524
Next: Strings
Up: Parameters
Previous: Defaults

KAPPA --- Kernel Application Package
Starlink User Note 95
Malcolm J. Currie & David S. Berry
2008 June 14
E-mail:ussc@star.rl.ac.uk

Copyright © 2008 Science and Technology Facilities Council