Main module.
simple function versions for testing
Calculate the flux of trapped particles at a specific location and time. This is just a function version of the class method from radbelt_type.
Note
This routine is not efficient at all since it will reload all the files every time it is called.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 just a function version of the class method from radbelt_type.
Note
This routine is not efficient at all since it will reload all the files every time it is called.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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.
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 |
generic, public :: get_flux => get_flux_g_, get_flux_c_ | |
procedure, private :: get_flux_c_ | |
procedure, private :: get_flux_g_ | |
procedure, public :: set_data_files_paths | |
procedure, public :: set_igrf_file_path | |
procedure, public :: set_trm_file_path |
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 just a function version of the class method from radbelt_type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 just a function version of the class method from radbelt_type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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.
Set the trm
path.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
character(len=*), | intent(in) | :: | dir |
Set the igrf
path.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(radbelt_type), | intent(inout) | :: | me | |||
character(len=*), | intent(in) | :: | dir |
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 |