Generate and return the conversion of an input natural logarithm of a bolometric ( \([0.0001, 20000]\kev\)) energy flux/fluence in units of \(\ergs\) over a given time to the photon flux/fluence over the same time in the BATSE detection energy range \([50, 300]\kev\).
More...
Generate and return the conversion of an input natural logarithm of a bolometric ( \([0.0001, 20000]\kev\)) energy flux/fluence in units of \(\ergs\) over a given time to the photon flux/fluence over the same time in the BATSE detection energy range \([50, 300]\kev\).
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] | logPbol | : The input scalar or array of the same rank as the input arguments of same type and kind as logPPF64 , 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.
|
- Returns
logPF53
: The output 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}]\).
Possible calling interfaces ⛓
Generate and return the conversion of an input natural logarithm of a bolometric ( ) energy flux/flue...
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(
"getLogPF53(logEpk = 2._RKG, logPbol = 0._RKG)")
33 real(RKG) :: logEpk(
1000), photon, alpha
= -1.1, beta
= -2.3
34 integer :: fileUnit, i
36 call setLinSpace(logEpk,
log(
1.e-3_RKG),
log(
1.e5_RKG))
37 open(newunit
= fileUnit, file
= "getLogPF53.RK.txt")
38 do i
= 1,
size(logEpk)
39 call setBandPhoton(photon,
50._RKG,
300._RKG,
1._RKG,
0.001_RKG,
20000._RKG, alpha, beta,
getBandEbreak(alpha, beta,
exp(logEpk(i))), info)
40 if (info
< 0)
error stop
41 write(fileUnit,
"(*(g0,:,' '))")
exp(logEpk(i)),
exp(
getLogPF53(logEpk(i),
log(
1.e-6_RKG))), photon
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 photon integral (the photon fluence in units of photon counts) of the Band mo...
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(
"Photon flux in 50-300 keV 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 ( [
"getLogPF53()",
"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 548 of file pm_batse.F90.