Generate and return the conversion of an input natural logarithm of photon flux/fluence over a given time in the BATSE detection energy range \([50, 300]\kev\) to a bolometric ( \([0.0001, 20000]\kev\)) energy flux/fluence in units of \(\ergs\) over the same time.
More...
Generate and return the conversion of an input natural logarithm of photon flux/fluence over a given time in the BATSE detection energy range \([50, 300]\kev\) to a bolometric ( \([0.0001, 20000]\kev\)) energy flux/fluence in units of \(\ergs\) over the same time.
See the Eqn A4 of Shahmoradi and Nemiroff 2015, MNRAS, Short versus long gamma-ray bursts for more details.
- Parameters
-
[in] | logEpk | : The input scalar, or array of the same rank as other input array-valued arguments, of the same type and kind as logPPF64 , containing the natural logarithm of the spectral peak energy of the GRB in units of \(\ergs\).
|
[in] | logPF53 | : The input scalar, or array of the same rank as other input array-valued arguments, of type real of kind any supported by the processor (e.g., RK, RK32, RK64, or RK128), containing the natural logarithm of the Photon Flux of an event in units of \([\ms{photons} / \ms{sec}]\).
|
- Returns
logPbol
: The output scalar or array of the same rank as the input arguments of same type and kind as the input arguments, containing the natural logarithm of the bolometric ( \([0.0001, 20000]\kev\)) energy flux of the GRB event in units of \(\ergs\) over the same time interval.
Possible calling interfaces ⛓
Generate and return the conversion of an input natural logarithm of photon flux/fluence over a given ...
This module contains procedures and generic interfaces for modeling data and detectors of the BATSE G...
- See also
- getLogPbol
getLogPF53
getLog10PF53
getLogEffPPF
setBandEnergy
setBandPhoton
getCorrectionLogEffPPF
Example usage ⛓
11 type(display_type) :: disp
19 call disp%show(
"getLogPbol(logEpk = 2._RKG, logPF53 = 0._RKG)")
33 real(RKG) :: logEpk(
1000), energy, alpha
= -1.1, beta
= -2.3
34 integer :: fileUnit, i, info
36 call setLinSpace(logEpk,
log(
1.e-3_RKG),
log(
1.e5_RKG))
37 open(newunit
= fileUnit, file
= "getLogPbol.RK.txt")
38 do i
= 1,
size(logEpk)
39 call setBandEnergy(energy,
0.001_RKG,
20000._RKG,
1._RKG,
50._RKG,
300._RKG, alpha, beta,
getBandEbreak(alpha, beta,
exp(logEpk(i))), info)
40 if (info
< 0)
error stop
41 write(fileUnit,
"(*(g0,:,' '))")
exp(logEpk(i)),
exp(
getLogPbol(logEpk(i),
0._RKG)), energy
/ 1.e9
Return the linSpace output argument with size(linSpace) elements of evenly-spaced values over the int...
Generate and return the spectral break energy parameter of the Band spectral model/distribution from ...
Generate and return the energy integral (the energy fluence in units of the input break energy) of th...
This is a generic method of the derived type display_type with pass attribute.
This is a generic method of the derived type display_type with pass attribute.
This module contains procedures and generic interfaces for generating arrays with linear or logarithm...
This module contains procedures and generic interfaces for computing the Band photon distribution wid...
This module contains classes and procedures for input/output (IO) or generic display operations on st...
type(display_type) disp
This is a scalar module variable an object of type display_type for general display.
This module defines the relevant Fortran kind type-parameters frequently used in the ParaMonte librar...
integer, parameter LK
The default logical kind in the ParaMonte library: kind(.true.) in Fortran, kind(....
integer, parameter IK
The default integer kind in the ParaMonte library: int32 in Fortran, c_int32_t in C-Fortran Interoper...
integer, parameter RKD
The double precision real kind in Fortran mode. On most platforms, this is an 64-bit real kind.
integer, parameter SK
The default character kind in the ParaMonte library: kind("a") in Fortran, c_char in C-Fortran Intero...
integer, parameter RKH
The scalar integer constant of intrinsic default kind, representing the highest-precision real kind t...
Generate and return an object of type display_type.
Example Unix compile command via Intel ifort
compiler ⛓
3ifort -fpp -standard-semantics -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
Example Windows Batch compile command via Intel ifort
compiler ⛓
2set PATH=..\..\..\lib;%PATH%
3ifort /fpp /standard-semantics /O3 /I:..\..\..\include main.F90 ..\..\..\lib\libparamonte*.lib /exe:main.exe
Example Unix / MinGW compile command via GNU gfortran
compiler ⛓
3gfortran -cpp -ffree-line-length-none -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
Example output ⛓
Postprocessing of the example output ⛓
3import matplotlib.pyplot
as plt
13pattern =
"*." + kind +
".txt"
14fileList = glob.glob(pattern)
17 df = pd.read_csv(fileList[0], delimiter =
" ")
19 fig = plt.figure(figsize = 1.25 * np.array([6.4, 4.8]), dpi = 200)
22 plt.plot( df.values[:, 1]
27 plt.plot( df.values[:,2]
32 plt.xticks(fontsize = fontsize - 2)
33 plt.yticks(fontsize = fontsize - 2)
34 ax.set_xlabel(
"Bolometric energy flux range", fontsize = fontsize)
35 ax.set_ylabel(
"Epeak [ keV ]", fontsize = fontsize)
39 plt.grid(visible =
True, which =
"both", axis =
"both", color =
"0.85", linestyle =
"-")
40 ax.tick_params(axis =
"y", which =
"minor")
41 ax.tick_params(axis =
"x", which =
"minor")
43 ax.legend ( [
"getLogPbol()",
"setBandPhoton()"]
49 plt.savefig(fileList[0].replace(
".txt",
".png"))
53 sys.exit(
"Ambiguous file list exists.")
Visualization of the example output ⛓
- Test:
- test_pm_batse
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
-
If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
-
If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
- Copyright
- Computational Data Science Lab
- Author:
- Amir Shahmoradi, Wednesday June 27, 2012, 7:15 PM, Institute for Fusion Studies, The University of Texas at Austin.
Definition at line 427 of file pm_batse.F90.