The interface to the splined MOON_PA frame: only the evaluation workspace (the splines themselves are global). Make a copy for each thread.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private, | dimension(n_splines) | :: | inbvx | = | 1 |
|
| real(kind=wp), | private, | dimension(3*kx) | :: | w0 | = | 0.0_wp |
|
Read the table and compute the (global) splines, for the time span [et0, etf]:
the rows from the last one at or before et0 to the first one at or after
etf (as in moonframe). Then the object's workspace is reset; copies of
the object (allocate(..., source=...)) can be used by other threads.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(moon_pa_frame), | intent(inout) | :: | me | |||
| character(len=*), | intent(in) | :: | filename |
csv file with the ephemeris time, roll, pitch and yaw (rad) |
||
| real(kind=wp), | intent(in) | :: | et0 |
start ephemeris time of the span to spline [sec] |
||
| real(kind=wp), | intent(in) | :: | etf |
end ephemeris time of the span to spline [sec] |
The rotation matrix from J2000 to the MOON_PA frame at et.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(moon_pa_frame), | intent(inout) | :: | me | |||
| real(kind=wp), | intent(in) | :: | et |
ephemeris time [sec] |
The rotation matrix from the MOON_PA frame to J2000 at et.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(moon_pa_frame), | intent(inout) | :: | me | |||
| real(kind=wp), | intent(in) | :: | et |
ephemeris time [sec] |
Reset the object's workspace (the global splines are kept).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(moon_pa_frame), | intent(inout) | :: | me |
type,public :: moon_pa_frame !! The interface to the splined MOON_PA frame: only the evaluation workspace !! (the splines themselves are global). Make a copy for each thread. private integer,dimension(n_splines) :: inbvx = 1 !! `db1val`'s interval index for each spline real(wp),dimension(3*kx) :: w0 = 0.0_wp !! `db1val` work array contains private procedure,public :: initialize => initialize_moon_pa_frame procedure,public :: j2000_to_frame procedure,public :: frame_to_j2000 procedure,public :: destroy => destroy_moon_pa_frame end type moon_pa_frame