next up previous contents
Next: XSPEC V12 Models Up: Setting Commands Previous: xsect

            xset: set variables for XSPEC models.

Modify a number of XSPEC internal switches.

 

Syntax:           xset [abund | cosmo | mdatadir | method | seed | statistic | weight | xsect | <string_name> ] [ <options> | <string_value> ]

 

The arguments abund, cosmo, method, statistic, weight, and xsect just run the appropriate XSPEC commands. mdatadir changes the directory in which XSPEC searches for model data files. You probably don't want to change this.  The seed option requires an integer argument, which will then be used to immediately re-seed and re-initialize XSPEC’s  random-number generator.

The <string_name> option can be used to pass string values to models. XSPEC maintains a database of <string_name>, <string_value> pairs created using this command. Individual model functions can then access this database. Note that xset does no checking on whether the <string_name> is used by any model so spelling errors will not be trapped.

To access the <string_name>, <string_value> database from within a model function use the fortran function fgmstr. This is defined as character*128 and takes a single argument, the string name as a character*128. If the <string_name> has not been set then a blank string will be returned.

Examples:

XSPEC12> xset neivers 2.0

// Set the NEIVERS variable to 2.0

XSPEC12> xset

// List the current string variables

XSPEC12> xset apecroot /foo/bar/apec_v1.01

// Set the APECROOT variable

XSPEC12> xset seed 1515151

      // Re-initialize the pseudo random-number generator

      // with the seed value 1515151