Additive models¶
APEC
¶
Bases: AdditiveComponent
Collisionally ionized plasma emission from AtomDB 3.1.3.
This component represents the XSPEC apec, bapec, vapec, bvapec, vvapec and
bvvapec variants. Lines and the pseudo-continuum are thermally broadened; setting
broadening=True adds turbulent velocity broadening.
Parameters
- \(kT\) (
kT) \(\left[\text{keV}\right]\) : Plasma temperature - \(A\) (
abund) \(\left[\text{dimensionless}\right]\) : Abundance of the 12 vapec metals relative to solar; available whenabundances="fixed" - \(A_Z\) (
He,C,N,O,Ne,Mg,Al,Si,S,Ar,Ca,Fe,Ni) \(\left[\text{dimensionless}\right]\) : Individual abundances relative to solar; available whenabundances="free" - \(A_Z\) (
H,He, ...,Zn) \(\left[\text{dimensionless}\right]\) : All 30 individual abundances relative to solar; available whenabundances="all" - \(v\) (
velocity) \(\left[\text{km s}^{-1}\right]\) : Gaussian turbulent velocity broadening; available whenbroadening=True - \(z\) (
redshift) \(\left[\text{dimensionless}\right]\) : Redshift - \(K\) (
norm) : Normalization \(\frac{10^{-14}}{4\pi \left[D_A (1+z)\right]^2} \int n_e n_H dV\) (XSPEC convention)
Constructor arguments
broadening: add thevelocityparameterabundances:"fixed"for one metal abundance,"free"for the 13 vapec abundances, or"all"for all 30 elementsabundance_table: solar abundance scale fromabundance_tableenergy_band: optional observed(e_min, e_max)band in keV; flux outside this band is unavailablek_window: number of nearby output bins receiving each line."auto"(default) sizes it from the energy grid at the first evaluation, for kT ≤ 15 keV and v ≤ 500 km/s; pass an integer for broader lines. A grid that is only ever traced (for instance shifted by an instrument model) falls back to 128 until a concrete grid has been seenline_chunks: static line batch count;Noneselects it automaticallyz_max: largest redshift covered byenergy_band
Warning
Constructor arguments are static; changing them requires a new component and JIT compilation. The evaluation is compiled once per energy grid shape and window; the tables are device arrays shared by every replica and passed as arguments of that compiled function. Enable JAX float64 for full table precision.
Table coverage
The table covers 0.1–15 keV in the rest frame. Emissivities clip to its temperature range, 0.0813–38.5 keV.
Source code in src/jaxspec/model/_additive/apec.py
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 | |
Additiveconstant
¶
Bases: AdditiveComponent
A constant model
Parameters
- \(K\) (
norm) \(\left[\frac{\text{photons}}{\text{keV}\text{cm}^2\text{s}}\right]\) : Normalization
Source code in src/jaxspec/model/additive.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | |
Agauss
¶
Bases: AdditiveComponent
A simple Gaussian line profile in wavelength space.
If the width is \(\leq 0\) then it is treated as a delta function.
The Zagauss variant computes a redshifted Gaussian.
Parameters
- \(\lambda_L\) (
lambdal) \(\left[\unicode{x212B}\right]\) : Wavelength of the line in Angström - \(\sigma\) (
sigma) \(\left[\unicode{x212B}\right]\) : Width of the line width in Angström - \(K\) (
norm) \(\left[\frac{\unicode{x212B}~\text{photons}}{\text{keV}\text{cm}^2\text{s}}\right]\): Normalization
Source code in src/jaxspec/model/additive.py
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | |
Band
¶
Bases: AdditiveComponent
A Band function model
Parameters
- \(\alpha_1\) (
alpha1) \(\left[\text{dimensionless}\right]\) : First powerlaw index - \(\alpha_2\) (
alpha2) \(\left[\text{dimensionless}\right]\) : Second powerlaw index - \(E_c\) (
Ec) \(\left[\text{keV}\right]\) : Radius at infinity (modulated by gravitational effects) - norm (
norm) \(\left[\frac{\text{photons}}{\text{keV}\text{cm}^2\text{s}}\right]\) : Normalization at the reference energy (100 keV)
Source code in src/jaxspec/model/additive.py
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 | |
Blackbody
¶
Bases: AdditiveComponent
A black body model
Parameters
- \(k_B T\) (
kT) \(\left[\text{keV}\right]\) : Temperature - \(K\) (
norm) \(\left[\text{dimensionless}\right]\) : \(L_{39}/D_{10}^{2}\), where \(L_{39}\) is the source luminosity [\(10^{39} \frac{\text{erg}}{\text{s}}\)] and \(D_{10}\) is the distance to the source [\(10 \text{kpc}\)]
Source code in src/jaxspec/model/additive.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
Blackbodyrad
¶
Bases: AdditiveComponent
A black body model in radius normalization
Parameters
- \(k_B T\) (
kT) \(\left[\text{keV}\right]\) : Temperature - \(K\) (
norm) [dimensionless] : \(R^2_{km}/D_{10}^{2}\), where \(R_{km}\) is the source radius [\(\text{km}\)] and \(D_{10}\) is the distance to the source [\(10 \text{kpc}\)]
Source code in src/jaxspec/model/additive.py
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
Cutoffpl
¶
Bases: AdditiveComponent
A power law model with high energy exponential cutoff
Parameters
- \(\alpha\) (
alpha) \(\left[\text{dimensionless}\right]\) : Photon index of the power law - \(\beta\) (
beta) \(\left[\text{keV}\right]\) : Folding energy of the exponential cutoff - \(E_0\) \(\left[ \mathrm{keV}\right]\) : Reference energy fixed at 1 keV
- \(K\) (
norm) \(\left[\frac{\text{photons}}{\text{keV}\text{cm}^2\text{s}}\right]\) : Normalization
Source code in src/jaxspec/model/additive.py
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |
Diskbb
¶
Bases: AdditiveComponent
Multicolor disk blackbody with radial exponent fixed at \(p=0.75\).
norm is the unabsorbed photon flux over flux_band. Fits publish the XSPEC
normalization \(\cos i\,(r_{\rm in}/d)^2\) as the derived quantity norm_xspec.
Parameters
- \(T_{\rm in}\) (
Tin) \([\mathrm{keV}]\): inner-disk temperature - \(K\) (
norm) \([\mathrm{photons\,cm^{-2}\,s^{-1}}]\): photon flux overflux_band
Constructor arguments
flux_band: normalization band in keV; defaults to 0.5--10 keV
Source code in src/jaxspec/model/_additive/disk.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | |
Diskpbb
¶
Bases: AdditiveComponent
Multicolor disk blackbody with \(T(r)\propto r^{-p}\).
norm is the unabsorbed photon flux over flux_band. Fits publish the XSPEC
normalization \(\cos i\,(r_{\rm in}/d)^2\) as the derived quantity norm_xspec.
Parameters
- \(T_{\rm in}\) (
Tin) \([\mathrm{keV}]\): inner-disk temperature - \(p\) (
p): radial temperature exponent - \(K\) (
norm) \([\mathrm{photons\,cm^{-2}\,s^{-1}}]\): photon flux overflux_band
Constructor arguments
flux_band: normalization band in keV; defaults to 0.5--10 keV
Source code in src/jaxspec/model/_additive/disk.py
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | |
Gauss
¶
Bases: AdditiveComponent
A Gaussian line profile. If the width is \(\leq 0\) then it is treated as a delta function.
The Zgauss variant computes a redshifted Gaussian.
Parameters
- \(E_L\) (
El) \(\left[\text{keV}\right]\) : Energy of the line - \(\sigma\) (
sigma) \(\left[\text{keV}\right]\) : Width of the line - \(K\) (
norm) \(\left[\frac{\text{photons}}{\text{cm}^2\text{s}}\right]\) : Normalization
Source code in src/jaxspec/model/additive.py
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | |
Logparabola
¶
Bases: AdditiveComponent
A LogParabola model
Parameters
- \(a\) (
a) \(\left[\text{dimensionless}\right]\) : Slope of the LogParabola at the pivot energy - \(b\) (
b) \(\left[\text{dimensionless}\right]\) : Curve parameter of the LogParabola - \(E_{\text{Pivot}}\) \(\left[ \mathrm{keV}\right]\) : Pivot energy fixed at 1 keV
- \(K\) (
norm) \(\left[\frac{\text{photons}}{\text{keV}\text{cm}^2\text{s}}\right]\) : Normalization
Source code in src/jaxspec/model/additive.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | |
Lorentz
¶
Bases: AdditiveComponent
A Lorentzian line profile
Parameters
- \(E_L\) (
E_l) \(\left[\text{keV}\right]\) : Energy of the line - \(\sigma\) (
sigma) \(\left[\text{keV}\right]\) : FWHM of the line - \(K\) (
norm) \(\left[\frac{\text{photons}}{\text{cm}^2\text{s}}\right]\) : Normalization
Source code in src/jaxspec/model/additive.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
NSatmos
¶
Bases: AdditiveComponent
A neutron star atmosphere model based on the NSATMOS model from XSPEC. See this page
Warning
The boundary case of \(R_{\text{NS}} < 1.125 R_{\text{S}}\) is handled with a null flux instead of a constant value as in XSPEC.
Parameters
- \(T_{eff}\) (
Tinf) \(\left[\text{Kelvin}\right]\) : Effective temperature at the surface (No redshift applied) - \(M_{ns}\) (
mass) \(\left[M_{\odot}\right]\) : Mass of the NS - \(R_∞\) (
radius) \(\left[\text{km}\right]\) : Radius at infinity (modulated by gravitational effects) - \(D\) (
distance) \(\left[\text{kpc}\right]\) : Distance to the neutron star - norm (
norm) \(\left[\text{dimensionless}\right]\) : fraction of the neutron star surface emitting
Source code in src/jaxspec/model/additive.py
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 | |
Powerlaw
¶
Bases: AdditiveComponent
A power law model
Parameters
- \(\alpha\) (
alpha) \(\left[\text{dimensionless}\right]\) : Photon index of the power law - \(E_0\) \(\left[ \mathrm{keV}\right]\) : Reference energy fixed at 1 keV
- \(K\) (
norm) \(\left[\frac{\text{photons}}{\text{keV}\text{cm}^2\text{s}}\right]\) : Normalization at the reference energy (1 keV)
Source code in src/jaxspec/model/additive.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
Zagauss
¶
Bases: AdditiveComponent
A redshifted Gaussian line profile in wavelength space. If the width is \(\leq 0\) then it is treated as a delta function.
Parameters
- \(\lambda_L\) (
lambdal) \(\left[\unicode{x212B}\right]\) : Wavelength of the line in Angström - \(\sigma\) (
sigma) \(\left[\unicode{x212B}\right]\) : Width of the line width in Angström - \(z\) (
redshift) \(\left[\text{dimensionless}\right]\) : Redshift - \(K\) (
norm) \(\left[\frac{\unicode{x212B}~\text{photons}}{\text{keV}\text{cm}^2\text{s}}\right]\) : Normalization
Source code in src/jaxspec/model/additive.py
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | |
Zgauss
¶
Bases: AdditiveComponent
A redshifted Gaussian line profile. If the width is \(\leq 0\) then it is treated as a delta function.
Parameters
- \(E_L\) (
El) \(\left[\text{keV}\right]\) : Energy of the line - \(\sigma\) (
sigma) \(\left[\text{keV}\right]\) : Width of the line - \(K\) (
norm) \(\left[\frac{\text{photons}}{\text{cm}^2\text{s}}\right]\) : Normalization - \(z\) (
redshift) \(\left[\text{dimensionless}\right]\) : Redshift
Source code in src/jaxspec/model/additive.py
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | |