<p>Probably it's easiest to use some package for this, for example, if you use Python, you can use astropy:
<a href="http://docs.astropy.org/en/stable/generated/examples/coordinates/plot_galactocentric-frame.html" rel="nofollow noreferrer">http://docs.astropy.org/en/stable/generated/examples/coordinates/plot_galactocentric-frame.html</a>.
Or if you are interested, here is a description on how to do it by hand, including the propagation the uncertainties:
<a href="http://adsabs.harvard.edu/abs/1987AJ.....93..864J" rel="nofollow noreferrer">http://adsabs.harvard.edu/abs/1987AJ.....93..864J</a></p>

<p>Of course, you also need radial (line-of-sight) velocities, but I don't know if that is in the ATNF catalogue...</p>

<p>Edit:
About the radial velocities: we only see the pulsars move across the sky and know the distance, so we get two velocity components perpendicular to our line of sight, a $v_\alpha$ and a $v_\delta$, from the proper motion in Right Ascension ($v_\alpha=d\cdot \mu_\alpha$) and the propermotion in Declination ($v_\delta=d\cdot\mu_\delta$).</p>

<p>Probably, it is useful for you to convert these proper motions from $\mu_\alpha, \mu_\delta$ to galactic longitude ($l$) and latitude ($b$) $\mu_l,\mu_b$, so you can get the velocities in cartesian coordinates: $v_y=d\cdot\mu_l$ and $v_z=d\cdot\mu_b$. This way, you have at least the two velocity components perpendicular to our LOS. Oh, and you maybe also want to subtract the rotation of the sun around the MW center.</p>

<p>There are ways to estimate the radial velocity sometimes: if the pulsar lives in a binary system, a spectrum of the companion maybe. Or a very crude way would be maybe something like <a href="http://adsabs.harvard.edu/full/1977ApJ...216..842H" rel="nofollow noreferrer">http://adsabs.harvard.edu/full/1977ApJ...216..842H</a>... But I don't know much about it. </p>

CC BY-SA 3.0
2018-03-26T01:28:04.873Z
Thanks for the suggestions. I am hoping to implement this in javascript, so the source of astropy might be a great place for me to look. 

Can you expand on your "radial velocities" comment? My primary goal here is calculate motion over time in galactic coordinates... If only ATNF had velocities, accelerations, etc in galactic.
7yl4r
CC BY-SA 3.0
2018-03-25T22:02:37.970Z
2018-03-26T21:36:20.017Z
2018-03-26T21:36:20.017Z
user22391
<p>How to convert Ecliptic co-ordinates to Galactic? The wikipedia article on <a href="https://en.wikipedia.org/wiki/Celestial_coordinate_system#Converting_coordinates" rel="nofollow noreferrer">Celestial Coordinate systems contains various conversions</a>, but this one is currently absent.</p>

<p>For a more specific example: I would like to convert Proper motion in ecliptic latitude and longitude from the ATNF catalog into proper motion in galactic coordinates. Using the following notation from <a href="http://www.atnf.csiro.au/research/pulsar/psrcat/psrcat_help.html" rel="nofollow noreferrer">the catalog documentation</a>:</p>

<pre><code>PMElong:     Proper motion in the ecliptic longitude direction (mas/yr) 
PMElat:      Proper motion in ecliptic latitude (mas/yr) 
...
ZZ:          Distance from the Galactic plane, based on Dist
XX:          X-Distance in X-Y-Z Galactic coordinate system (kpc)
YY:          Y-Distance in X-Y-Z Galactic coordinate system (kpc)
</code></pre>

<p>How would I calculate the following (my own addition) from <code>PMElong</code> &amp; <code>PMElat</code>?</p>

<pre><code>PMZZ:        Proper motion perpendicular to Galactic plane
PMXX:        X-direction proper motion in X-Y-Z Galactic coordinate system (kpc/yr)
PMYY:        Y-direction proper motion in X-Y-Z Galactic coordinate system (kpc/yr)
</code></pre>

CC BY-SA 3.0
2018-03-26T01:21:32.820Z
Ah yes I think you are right, @barrycarter .
7yl4r
CC BY-SA 3.0
2018-03-27T14:43:07.613Z
The ATNF pulsar catalogue also gives proper motion in equatorial coordinates: PMRA and PMDec. Why deal with ecliptic coordinates at all?
Mike G
CC BY-SA 3.0
2018-03-27T16:21:11.133Z
My plan was to calculate both to verify my result.
7yl4r
<coordinate>
Convert Ecliptic to Galactic Coordinates
7yl4r
# Convert Ecliptic to Galactic Coordinates

(Asked by: username_0 on 2018-03-25)

How to convert Ecliptic co-ordinates to Galactic? The wikipedia article on Celestial Coordinate systems contains various conversions, but this one is currently absent.
For a more specific example: I would like to convert Proper motion in ecliptic latitude and longitude from the ATNF catalog into proper motion in galactic coordinates. Using the following notation from the catalog documentation:
PMElong:     Proper motion in the ecliptic longitude direction (mas/yr) 
PMElat:      Proper motion in ecliptic latitude (mas/yr) 
...
ZZ:          Distance from the Galactic plane, based on Dist
XX:          X-Distance in X-Y-Z Galactic coordinate system (kpc)
YY:          Y-Distance in X-Y-Z Galactic coordinate system (kpc)

How would I calculate the following (my own addition) from PMElong & PMElat?
PMZZ:        Proper motion perpendicular to Galactic plane
PMXX:        X-direction proper motion in X-Y-Z Galactic coordinate system (kpc/yr)
PMYY:        Y-direction proper motion in X-Y-Z Galactic coordinate system (kpc/yr)

**Tags:** coordinate

> **Comments:**
> **username_0**: Ah yes I think you are right, @barrycarter .  
> **username_1**: The ATNF pulsar catalogue also gives proper motion in equatorial coordinates: PMRA and PMDec. Why deal with ecliptic coordinates at all?  
> **username_0**: My plan was to calculate both to verify my result.  

---

## 1 answers

### Answer by username_2 on 2018-03-25. Score: 2

Probably it's easiest to use some package for this, for example, if you use Python, you can use astropy:
<http://docs.astropy.org/en/stable/generated/examples/coordinates/plot_galactocentric-frame.html>.
Or if you are interested, here is a description on how to do it by hand, including the propagation the uncertainties:
<http://adsabs.harvard.edu/abs/1987AJ.....93..864J>

Of course, you also need radial (line-of-sight) velocities, but I don't know if that is in the ATNF catalogue...

Edit:
About the radial velocities: we only see the pulsars move across the sky and know the distance, so we get two velocity components perpendicular to our line of sight, a $v\_\alpha$ and a $v\_\delta$, from the proper motion in Right Ascension ($v\_\alpha=d\cdot \mu\_\alpha$) and the propermotion in Declination ($v\_\delta=d\cdot\mu\_\delta$).

Probably, it is useful for you to convert these proper motions from $\mu\_\alpha, \mu\_\delta$ to galactic longitude ($l$) and latitude ($b$) $\mu\_l,\mu\_b$, so you can get the velocities in cartesian coordinates: $v\_y=d\cdot\mu\_l$ and $v\_z=d\cdot\mu\_b$. This way, you have at least the two velocity components perpendicular to our LOS. Oh, and you maybe also want to subtract the rotation of the sun around the MW center.

There are ways to estimate the radial velocity sometimes: if the pulsar lives in a binary system, a spectrum of the companion maybe. Or a very crude way would be maybe something like <http://adsabs.harvard.edu/full/1977ApJ...216..842H>... But I don't know much about it.

> **Comments:**
> **username_0**: Thanks for the suggestions. I am hoping to implement this in javascript, so the source of astropy might be a great place for me to look.   Can you expand on your "radial velocities" comment? My primary goal here is calculate motion over time in galactic coordinates... If only ATNF had velocities, accelerations, etc in galactic.  

---

