Experimental C interface to the radbelt module.
Convert C string to Fortran
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=c_char, len=1), | intent(in), | dimension(:) | :: | cstr |
string from C |
fortran string
Convert an integer pointer to a radbelt_type pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_intptr_t), | intent(in) | :: | ipointer |
integer pointer from C |
||
type(radbelt_type), | pointer | :: | p |
fortran pointer |
create a radbelt_type from C
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_intptr_t), | intent(out) | :: | ipointer |
destroy a radbelt_type from C
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_intptr_t), | intent(in) | :: | ipointer |
C interface for setting the trm
data file path
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_intptr_t), | intent(in) | :: | ipointer | |||
character(kind=c_char, len=1), | intent(in), | dimension(n) | :: | aep8_dir | ||
integer(kind=c_int), | intent(in) | :: | n |
size of |
C interface for setting the igrf
data file path
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_intptr_t), | intent(in) | :: | ipointer | |||
character(kind=c_char, len=1), | intent(in), | dimension(n) | :: | igrf_dir | ||
integer(kind=c_int), | intent(in) | :: | n |
size of |
C interface for setting the data file paths
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_intptr_t), | intent(in) | :: | ipointer | |||
character(kind=c_char, len=1), | intent(in), | dimension(n) | :: | aep8_dir | ||
character(kind=c_char, len=1), | intent(in), | dimension(m) | :: | igrf_dir | ||
integer(kind=c_int), | intent(in) | :: | n |
size of |
||
integer(kind=c_int), | intent(in) | :: | m |
size of |
C interface to get_flux_g.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_intptr_t), | intent(in) | :: | ipointer | |||
real(kind=c_double), | intent(in) | :: | lon |
geodetic longitude in degrees (east) |
||
real(kind=c_double), | intent(in) | :: | lat |
geodetic latitude in degrees (north) |
||
real(kind=c_double), | intent(in) | :: | height |
altitude in km above sea level |
||
real(kind=c_double), | intent(in) | :: | year |
decimal year for which geomagnetic field is to be calculated (e.g.:1995.5 for day 185 of 1995) |
||
real(kind=c_double), | intent(in) | :: | e |
minimum energy |
||
integer(kind=c_int), | intent(in) | :: | imname |
which method to use: |
||
real(kind=c_double), | intent(out) | :: | flux |
The flux of particles above the given energy, in units of cm^-2 s^-1. |