Rotation matrix from ICRF to IAU_EARTH.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | et |
ephemeris time [sec] |
the rotation matrix
pure function icrf_to_iau_earth(et) result(rotmat) implicit none real(wp),intent(in) :: et !! ephemeris time [sec] real(wp),dimension(3,3) :: rotmat !! the rotation matrix real(wp) :: w,dec,ra,d,t d = et * sec2day !interval in days from the J2000 epoch t = et * sec2century !interval in Julian centuries (36525 days) from the J2000 epoch ra = ( - 0.641_wp * t ) * deg2rad dec = ( 90.0_wp - 0.557_wp * t ) * deg2rad w = ( 190.147_wp + 360.9856235_wp * d ) * deg2rad rotmat = iau_rotation_matrix(w,dec,ra) end function icrf_to_iau_earth