wiki:Shx/ShParam

Version 2 (modified by KlausStammler, 4 years ago) (diff)

--

Return to command index

Handle analysis parameters

command: PARAM SET <parname> <parvalue>
or
command: PARAM GET <parname> <outvar>
or
command: PARAM SAVE <filename>
or
command: PARAM LOAD <filename>
or
command: PARAM <subcmd>

Manage parameter set of SHX. The parameters are used mainly in combination with the GUI to offer a subset of commands without typing command lines. Some of the parameters are changed by SHX commands, like e.g. FK which sets 'fk_slowness' and 'fk_azimuth'.

parameters

  • <parname> parameter type: string
    Name of parameter. For a list of available parameters, see "param dump".
  • <parvalue> parameter type: depending on parameter
    New value of parameter. Only type-compatible values are accepted.
  • <outvar> parameter type: string
    Name of variable to take the current value of the specified parameter.
  • <filename> parameter type: string
    Name of input or output file (LOAD and SAVE subcommands).
  • <subcmd> parameter type: string
    Subcommand to operate on parameters. Possible are:
    SET: set parameter <parname> to value <value>.
    GET: get value of parameter <parname> into variable <outvar>.
    LOAD: load parameter set and phase picks from file <filename>.
    SAVE: save parameter set and phase picks into file <filename>.
    DUMP: list parameters and their values.
    RESET: reset values of all parameters, kind of factory reset.

qualifiers

None

example

param get fk_slowness &slo
Copy value of parameter "fk_slowness" into variable "slo" (to be defined via "sdef" before).
param save mypars.param
Save all parameters and phase picks into file "MYPARS.PARAM".