moon_pa_frame Derived Type

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.


Inherited by

type~~moon_pa_frame~~InheritedByGraph type~moon_pa_frame moon_pa_frame type~mission_type mission_type type~mission_type->type~moon_pa_frame moon_pa type~segment segment type~mission_type->type~segment segs type~segment->type~moon_pa_frame moon_pa type~eclipse_opt_data eclipse_opt_data type~eclipse_opt_data->type~mission_type mission type~my_solver_type my_solver_type type~my_solver_type->type~mission_type mission type~eclipse_newton_type eclipse_newton_type type~eclipse_newton_type->type~eclipse_opt_data d

Components

Type Visibility Attributes Name Initial
integer, private, dimension(n_splines) :: inbvx = 1

db1val's interval index for each spline

real(kind=wp), private, dimension(3*kx) :: w0 = 0.0_wp

db1val work array


Type-Bound Procedures

procedure, public :: initialize => initialize_moon_pa_frame

  • private subroutine initialize_moon_pa_frame(me, filename, et0, etf)

    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.

    Arguments

    Type IntentOptional 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]

procedure, public :: j2000_to_frame

  • private function j2000_to_frame(me, et) result(rot)

    The rotation matrix from J2000 to the MOON_PA frame at et.

    Arguments

    Type IntentOptional Attributes Name
    class(moon_pa_frame), intent(inout) :: me
    real(kind=wp), intent(in) :: et

    ephemeris time [sec]

    Return Value real(kind=wp), dimension(3,3)

procedure, public :: frame_to_j2000

  • private function frame_to_j2000(me, et) result(rot)

    The rotation matrix from the MOON_PA frame to J2000 at et.

    Arguments

    Type IntentOptional Attributes Name
    class(moon_pa_frame), intent(inout) :: me
    real(kind=wp), intent(in) :: et

    ephemeris time [sec]

    Return Value real(kind=wp), dimension(3,3)

procedure, public :: destroy => destroy_moon_pa_frame

  • private subroutine destroy_moon_pa_frame(me)

    Reset the object's workspace (the global splines are kept).

    Arguments

    Type IntentOptional Attributes Name
    class(moon_pa_frame), intent(inout) :: me

Source Code

    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