lofar-astron / RMextract

extract TEC, vTEC, Earthmagnetic field and Rotation Measures from GPS and WMM data for radio interferometry observations
GNU General Public License v3.0
31 stars 23 forks source link

Tracking non-sidereal objectasuch as the Moon or Jupiter #59

Open twillis449 opened 4 months ago

twillis449 commented 4 months ago

I don't think RMextract provides an option to track non-sidereal object such as the Moon in the PosTools code. But it would be nice to have.

tremou commented 4 months ago

that would be great indeed. Just in case someone needs a quick work around with astropy:

from astropy.coordinates import solar_system_ephemeris, EarthLocation
from astropy.coordinates import get_body_barycentric, get_body

with solar_system_ephemeris.set('builtin'):
    moon = get_body('moon', t, vla)
    #print(moon.ra,moon.dec,t)
    d=moon.ra.rad,moon.dec.rad
maaijke commented 4 months ago

I will take it into account in the update