[AstroPy] converting from proper motion in ra, dec to proper motion in galactic long, lat

Anne Archibald aarchiba at physics.mcgill.ca
Wed Jul 21 11:23:45 EDT 2010


On 21 July 2010 10:58, Wolfgang Kerzendorf <wkerzendorf at googlemail.com> wrote:
>  Hello,
>
> Does anyone know of something like this in any language? I also have
> errorbars that need converting.

I believe that SLALIB (for which Scott Ransom wrote python bindings)
can compute transformation matrices (i.e. the matrix of partial
derivatives) for its coordinate conversions; this should allow you to
convert proper motions. Error bars will take a little more work
because after matrix multiplication you need to convert a
non-axis-aligned error ellipse into some readily representable form.
Failing this, if you've got a good conversion library, you can just
compute the derivatives numerically (e.g.
(to_galactic(x+vx*t,y+vy*t)-to_galactic(x,y))/t for small but not too
small t).

Anne

> Cheers
>    Wolfgang
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>



More information about the AstroPy mailing list