General Information Regarding the Command-Line Interface to SOXS¶
Path to the Response Files¶
To use either the instrument_simulator
or simulate_spectrum
command-line
scripts, data files such as the instrumental responses, background models, and
PSF models are required. In versions of SOXS previous to v3.0.0, it was
necessary to download these files on your own and place them either in the
current working directory, or in a location specified by the SOXS Configuration File. Now,
whenever an instrument is used, SOXS will first check the current working
directory for the necessary files, and then will check the location specified by
the soxs_data_dir
entry in the configuration file. If the files are not
found in either location, they will be downloaded automatically. See
SOXS Configuration File for more information about the location of the configuration file
and how to set its parameters.
Special Argument Handling for Quantities with Units¶
Many arguments in the command line scripts which have units can
take a special format which allows one to specify that particular
quantity in the units desired by the user. For example, the
make_cosmological_sources script has the arguments exp_time
and area
, which assume the default units of seconds and \(\rm{cm^2}\),
respectively, if one supplies floating-point numbers:
[~]$ make_cosmological_sources halos.simput halos 100000.0 10.0 22.0,-12.0 --area=30000.0 --overwrite
but can take other units, like ks and \(\rm{m^2}\), in this format:
[~]$ make_cosmological_sources halos.simput halos 100.0,ks 10.0 22.0,-12.0 --area==3.0,m**2 --overwrite
Since the quantities are the same but in different units, these two calls would be equivalent.
The following arguments used in the command line scripts accept values with a unit specification:
Parameters Used in Many Scripts¶
exp_time
: Exposure time, default units of secondsarea
: Collecting area, default units of \(\rm{cm}^2\)fov
: Field of view, default units of arcminutesemin
: Minimum energy, default units of keVemax
: Minimum energy, default units of keVnH_abs
: Foreground galactic absorption column, default units of \(10^{22} \rm{atoms/cm^2}\)
Parameters Used in Command Line Scripts for Spatial Models¶
ra0
: Central right ascension, default units of degreesdec0
: Central right ascension, default units of degreestheta
: Rotation angle, default units of degrees
Parameters Used in make_cie_spectrum¶
kT
: Temperature, default units of keVvelocity
: Velocity broadening parameter, default units of km/s
Parameters Used in make_igm_spectrum¶
kT
: Temperature, default units of keVnH
: Hydrogen number density, default units of \(\rm{cm}^{-3}\)
Parameters Used in make_annulus_source¶
r_in
: Inner radius of annulus, default units of arcsecondsr_out
: Inner radius of annulus, default units of arcseconds
Parameters Used in make_beta_model_source¶
r_c
: Core radius parameter, default units of arcseconds
Parameters Used in make_double_beta_model_source¶
r_c1
,r_c2
: Core radii parameters, default units of arcseconds
Parameters Used in make_rectangle_source¶
width
: Width of rectangle, default units of arcsecondsheight
: Width of rectangle, default units of arcseconds
Random Number Generation¶
Many routines in SOXS require generating random numbers for energies, sky
positions, spectral channels, etc. By default, for every SOXS run this will
be a different set of random numbers. It is often the case, however, that one
wants to use a consistent, repeatable set of random numbers to reproduce results
exactly. For this, many of the command-line scripts in SOXS take a
random_seed
optional argument, which has a default of None
, but if set
to an integer will use this value as a random seed.
For example, to use a consistent random seed in generating positions and energies for an annulus source, one would set the random seed like this:
make_annulus_source my_cat annulus 30.0 45.0 10.0 30.0 thermal_spec.dat 100.0,ks --random_seed=24
Check the documentation for the various command line scripts to see which
functions have the random_seed
argument.
Astrophysical Background Parameters¶
To change parameters for the astrophysical background, including the APEC model used for the thermal foreground components, and the absorption model as well as the value of the neutral hydrogen column, make edits to the SOXS Configuration File.