the main class that can be used to get the flux.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(trm_type), | private | :: | trm | ||||
type(shellig_type), | private | :: | igrf |
Calculate the flux of trapped particles at a specific location and time.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in) | :: | lon |
geodetic longitude in degrees (east) |
||
real(kind=wp), | intent(in) | :: | lat |
geodetic latitude in degrees (north) |
||
real(kind=wp), | intent(in) | :: | height |
altitude in km above sea level |
||
real(kind=wp), | intent(in) | :: | year |
decimal year for which geomagnetic field is to be calculated (e.g.:1995.5 for day 185 of 1995) |
||
real(kind=wp), | intent(in) | :: | e |
minimum energy |
||
integer, | intent(in) | :: | imname |
which method to use: |
The flux of particles above the given energy, in units of cm^-2 s^-1.
Calculate the flux of trapped particles at a specific location and time. This is an alternate version of get_flux_g_ for cartesian coordinates.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in), | dimension(3) | :: | v | ||
real(kind=wp), | intent(in) | :: | year |
decimal year for which geomagnetic field is to be calculated (e.g.:1995.5 for day 185 of 1995) |
||
real(kind=wp), | intent(in) | :: | e |
minimum energy |
||
integer, | intent(in) | :: | imname |
which method to use: |
The flux of particles above the given energy, in units of cm^-2 s^-1.
Calculate the flux of trapped particles at a specific location and time. This is an alternate version of get_flux_g_ for cartesian coordinates.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in), | dimension(3) | :: | v | ||
real(kind=wp), | intent(in) | :: | year |
decimal year for which geomagnetic field is to be calculated (e.g.:1995.5 for day 185 of 1995) |
||
real(kind=wp), | intent(in) | :: | e |
minimum energy |
||
integer, | intent(in) | :: | imname |
which method to use: |
The flux of particles above the given energy, in units of cm^-2 s^-1.
Calculate the flux of trapped particles at a specific location and time.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in) | :: | lon |
geodetic longitude in degrees (east) |
||
real(kind=wp), | intent(in) | :: | lat |
geodetic latitude in degrees (north) |
||
real(kind=wp), | intent(in) | :: | height |
altitude in km above sea level |
||
real(kind=wp), | intent(in) | :: | year |
decimal year for which geomagnetic field is to be calculated (e.g.:1995.5 for day 185 of 1995) |
||
real(kind=wp), | intent(in) | :: | e |
minimum energy |
||
integer, | intent(in) | :: | imname |
which method to use: |
The flux of particles above the given energy, in units of cm^-2 s^-1.
Set the paths to the data files.
If not used or blank, the folder data/aep8
and data/igrf
in the
current working directory is assumed
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
character(len=*), | intent(in) | :: | aep8_dir | |||
character(len=*), | intent(in) | :: | igrf_dir |
Set the igrf
path.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
character(len=*), | intent(in) | :: | dir |
Set the trm
path.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
character(len=*), | intent(in) | :: | dir |
type, public :: radbelt_type !! the main class that can be used to get the flux. private type(trm_type) :: trm type(shellig_type) :: igrf contains private generic, public :: get_flux => get_flux_g_, get_flux_c_ procedure :: get_flux_g_, get_flux_c_ procedure, public :: set_trm_file_path, & set_igrf_file_path, & set_data_files_paths end type radbelt_type