populate the f array with the ephemeris data
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(body_eph), | intent(inout) | :: | me | |||
| type(jpl_ephemeris), | intent(inout) | :: | eph | |||
| real(kind=wp), | intent(in) | :: | et |
ephemeris time [sec] |
||
| type(celestial_body), | intent(in) | :: | targ |
target body |
||
| type(celestial_body), | intent(in) | :: | obs |
observer body |
||
| integer, | intent(in) | :: | i |
index in the ephemeris |
subroutine populate_body_eph(me,eph,et,targ,obs,i) !! populate the `f` array with the ephemeris data class(body_eph),intent(inout) :: me type(jpl_ephemeris),intent(inout) :: eph real(wp),intent(in) :: et !! ephemeris time [sec] type(celestial_body),intent(in) :: targ !! target body type(celestial_body),intent(in) :: obs !! observer body integer,intent(in) :: i !! index in the ephemeris logical :: status_ok call eph%get_rv(et,targ,obs,me%f(i,:),status_ok) if (.not. status_ok) error stop 'eph error' end subroutine populate_body_eph