Models

JMKMod provides the following XSPEC models:

jmkmod jmkmod4 jmkmod8 jmkmod16
jmk7m jmk7m4 jmk7m8 jmk7m16
kram
filter

Verbosity

If JMKMOD is behaving impolitely, set the XSPEC chatter level to 11, and it will spill its guts about various things. Real handy when it refuses to open files.

Optical Constants

The ability to choose from several sets of optical constants is supported. The optconst parameter (formerly known as shell) determines where to look.

optconst where to look
0 default directory specified by optconstdir in config.inc
1 <= optconst <= 999 index in rdb table specified by optconsttbl in config.inc
1000 directory specified by environmental variable JMKOPTCONSTDIR
1001 <= optconst <=199 9 index in rdb table specified by environmental variable JMKOPTCONSTTBL. actual index to look for is optconst - 1000
2000 directory specified by environmental variable JMKOPTCONSTDIR, if the variable exists, else what's specified by optconstdir in config.inc

The rdb table has a minimum of two columns, index and path (in that order). These must be the first columns in the file. The value of the optconst parameter is matched to the indices in the file, and the path in the matching row is used as the optical constants directory. Note that the index is a floating point number, not an integer.

External Filters

External filters are now available. An external filter is an rdb table with at least two columns, energy (in eV) and trans (arbitrary units). They must be the first two columns in the file, in that order.

Filters are specified using a combination of the srcN and srcthkN parameters. An external filter will be used if the srcN parameter has a value between 1000 and 3999:

base srcN file to look for
1000 1000 < srcN < 1999 FLTDIR/filter_XXX.rdb
2000 2000 < srcN < 2999 filter_XXX.rdb
3000 3000 < srcN < 3999 contents of environmental variable JMKFILTER_XXX

here XXX is the value of srcN minus the base, with leading zeros (e.g. filter_099). FLTDIR is the value of the parameter fltdir, as specified in the config.inc source file in the JMKMOD distribution. (It is /proj/axaf/simul/databases/jmkmod_tables by default.)

The srcthkN parameter determines how the file found in the previous step is interpreted. If it is 0, the file contains the filter. A non-zero thickness indicates that the file is an rdb table containing a list of filters. Each entry in the table has a minimum of two columns, index and path (in that order). These must be the first columns in the file. The value of the thickness parameter is matched to the indices in the file, and the file in the matching row is used as the filter. Note that the index is a floating point number, not an integer.

Lead Filter

Filter number 49 is now lead. This is intended in part for use with the alledged manganese filter at XRCF which is in fact 1.25% lead.