LIGHTNING_MODEL_COUNTS#
Name#
LIGHTNING_MODEL_COUNTS
Purpose#
Generates the X-ray detector counts (folded through the instrumental response) of a lightning model under a specified set(s) of parameters.
Calling Sequence#
counts = lightning_model_counts(parameters, parameter_name, models [, Lbol_AGN_model = , $
L2500 = , agn_model = , xray_agn_model = , $
/error_check, counts_xrb=counts_xrb, counts_agn=counts_agn])
Inputs#
parametersint, float, or double array(Nparam, Nmodels)Parameters of the model(s). The actual parameters contained in this array depend on the chosen model(s) during configuration.
parameter_namestring array(Nparam)The names associated with the parameters of the model(s) given in the same order as
parameters.modelsstructureA structure containing each model structure (stellar, dust, AGN, X-ray) as a substructure. (See
lightning_models.profor details and contents.)
Optional Inputs#
Lbol_AGN_modeldouble array(Nmodels)Bolometric luminosity of the AGN model \([L_\odot]\). (Required if using a power law X-ray AGN emission model.)
L2500double array(Nmodels)The rest-frame 2500 Angstrom monochromatic luminosity shifted to the observed frame \([L_\odot\ {\rm Hz}^{-1}]\). (Required if using a power law X-ray AGN emission model.)
agn_modelstring scalarThe UV-to-IR AGN emission model to use. Current options are:
'SKIRTOR'or'NONE'. (Default ='NONE')xray_agn_modelstring scalarThe X-ray AGN emission model to use. Current options are:
'PLAW','QSOSED','NONE'. (Default ='QSOSED')error_checkflagIf set, all inputs are checked for errors. Otherwise, all inputs are assumed to be of correct format.
Output#
countsdouble array(Nxray, Nmodels)The total instrumental counts produced by the X-ray model under the set observing conditions \([{\rm counts}]\).
Optional Outputs#
counts_xrbdouble array(Nxray, Nmodels)The instrumental counts produced by the X-ray binary model \([{\rm counts}]\).
counts_agndouble array(Nxray, Nmodels)The instrumental counts produced by the X-ray AGN model \([{\rm counts}]\).
Modification History#
2022/06/07: Removed AGN covering factor from model (Erik B. Monson)
2022/06/20: Major update to include new implementation (e.g., prior, config, etc.) (Keith Doore)
2022/06/20: Replaced
!cvwith!lightning_cgs(Keith Doore)2022/06/20: Updated documentation (Keith Doore)
2022/06/20: Added error handling (Keith Doore)
2022/06/20: Added
error_checkkeyword to do error handling (Keith Doore)2022/07/06: Removed
configand replacedconfigtag calls with inputs (Keith Doore)2022/07/06: Transposed parameters array to eliminate need to reform it after indexing. (Keith Doore)