|AHELP for CIAO 4.3 Sherpa v1||
Using an n-dimensional array of values as a model (table model).
The table model allows you to use an array of values as a model component; the only parameter is "ampl" which acts as a normalization of the input array. See "ahelp load_table_model" for more information.
For most cases, the load_table_model() function should be used to create an instance of the table model; it will read in data from a file and create a tablemodel component for you. However, if you wish to use an array that you have created or calculated, you can create an component manually, as shown in the example below.
The array of values used, whether read in from a file or set from an array, should match that of the data - e.g. dimensionality and shape.
|1||ampl||amplitude; the y-values are multiplied by the amplitude|
The integration of models in Sherpa is controlled by an integration flag in each model structure. Refer to "ahelp integrate" for information on integrating model components.
sherpa> tablemodel.t1() sherpa> t1._y = [0.1, 0.2, 0.4 ..., ] sherpa> t1.ampl=0.45 sherpa> set_source(xsphabs.abs1*t1) sherpa> show_model()
An alternative to using the load_table_model() command to define the tablemodel y values is to input them directly. The model definition will look like:
Model: 1 (xsphabs.abs1 * tablemodel.t1) Param Type Value Min Max Units ----- ---- ----- --- --- ----- abs1.nh thawed 1 0 100000 10^22 atoms / cm^2 t1.ampl thawed 0.45 -3.40282e+38 3.40282e+38
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
- atten, bbody, bbodyfreq, beta1d, beta2d, box1d, box2d, bpl1d, const1d, const2d, cos, delta1d, delta2d, dered, devaucouleurs2d, edge, erf, erfc, exp, exp10, gauss1d, gauss2d, hubblereynolds, jdpileup, linebroad, list_model_components, list_models, log, log10, logparabola, lorentz1d, lorentz2d, models, normbeta1d, normgauss1d, poisson, polynom1d, polynom2d, powlaw1d, scale1d, scale2d, schechter, sin, sqrt, stephi1d, steplo1d, tan, xs, xsabsori, xsacisabs, xsapec, xsbapec, xsbbody, xsbbodyrad, xsbexrav, xsbexriv, xsbkn2pow, xsbknpower, xsbmc, xsbremss, xsbvapec, xsc6mekl, xsc6pmekl, xsc6pvmkl, xsc6vmekl, xscabs, xscemekl, xscevmkl, xscflow, xscompbb, xscompls, xscompps, xscompst, xscomptt, xsconstant, xscutoffpl, xscyclabs, xsdisk, xsdiskbb, xsdiskir, xsdiskline, xsdiskm, xsdisko, xsdiskpbb, xsdiskpn, xsdust, xsedge, xsequil, xsexpabs, xsexpdec, xsexpfac, xsezdiskbb, xsgabs, xsgaussian, xsgnei, xsgrad, xsgrbm, xshighecut, xshrefl, xskerrbb, xskerrd, xskerrdisk, xslaor, xslaor2, xslorentz, xsmeka, xsmekal, xsmkcflow, xsnei, xsnotch, xsnpshock, xsnsa, xsnsagrav, xsnsatmos, xsnsmax, xsnteea, xsnthcomp, xspcfabs, xspegpwrlw, xspexrav, xspexriv, xsphabs, xsplabs, xsplcabs, xsposm, xspowerlaw, xspshock, xspwab, xsraymond, xsredden, xsredge, xsrefsch, xssedov, xssmedge, xsspexpcut, xsspline, xssrcut, xssresc, xssss_ice, xsstep, xsswind1, xstbabs, xstbgrain, xstbvarabs, xsuvred, xsvapec, xsvarabs, xsvbremss, xsvequil, xsvgnei, xsvmcflow, xsvmeka, xsvmekal, xsvnei, xsvnpshock, xsvphabs, xsvpshock, xsvraymond, xsvsedov, xswabs, xswndabs, xsxion, xszbbody, xszbremss, xszdust, xszedge, xszgauss, xszhighect, xszpcfabs, xszphabs, xszpowerlw, xszredden, xszsmdust, xsztbabs, xszvarabs, xszvfeabs, xszvphabs, xszwabs, xszwndabs, xszxipcf