<p>Does anybody know of a good tutorial on how to use python and astropy to generate plots of GAIA, RAVE or any other database of barycentric (heliocentric) radial velocity data of stars in our galaxy?</p>

<p>I'd like to generate various plots of the heliocentric velocities of stars in our galaxy, making different restrictions on distances from the sun, and I'd like to see what the data looks like with correction for the proper motion of the sun and without. Now, I know I could find plots done by others, but I really want to learn how to generate my own plots. </p>

<p>I'm pretty new to python, so please target answers accordingly...</p>

<p>(added later:) There's probably a simple astropy function that if you call it with the right variables, say, a certain slice of the sky in RA and Dec, and a certain distance range in kpc, it will spit back a list of all the stars in that region along with their radial velocities.  I just need to learn the name of that function and how to call it.</p>

CC BY-SA 4.0
2018-11-22T22:20:42.870Z
Any particular aspect of the data you're trying to learn more about ? The question is a little broad...
astrosnapper
CC BY-SA 4.0
2018-11-22T22:55:13.943Z
Yes, I'd like to generate various plots of the heliocentric velocities of stars in our galaxy, making different restrictions on distances from the sun.  I'd like to see what the data looks like with correction for the proper motion of the sun and without.  Now, I know I could find plots done by others, but I really want to learn how to generate my own plots.  I'm pretty new to python.
Thomas Brennan
CC BY-SA 4.0
2018-11-23T04:44:45.367Z
@ThomasBrennan I've moved your comment back into your post. Comments are considered temporary, and can be suddenly cleaned up from time to time, and some readers don't even stop to read the comments, so it's always best to reply to requests for clarification with an edit to your post if it makes sense. Feel free to adjust further, and welcome to Astronomy!
uhoh
CC BY-SA 4.0
2018-11-23T08:34:37.580Z
What is the astronomy question here?
ProfRob
<data-analysis><python><gaia><astropy><radial-velocity>
Plotting GAIA barycentric radial velocity data with python
Thomas Brennan
# Plotting GAIA barycentric radial velocity data with python

(Asked by: username_0 on 2018-11-22)

Does anybody know of a good tutorial on how to use python and astropy to generate plots of GAIA, RAVE or any other database of barycentric (heliocentric) radial velocity data of stars in our galaxy?

I'd like to generate various plots of the heliocentric velocities of stars in our galaxy, making different restrictions on distances from the sun, and I'd like to see what the data looks like with correction for the proper motion of the sun and without. Now, I know I could find plots done by others, but I really want to learn how to generate my own plots.

I'm pretty new to python, so please target answers accordingly...

(added later:) There's probably a simple astropy function that if you call it with the right variables, say, a certain slice of the sky in RA and Dec, and a certain distance range in kpc, it will spit back a list of all the stars in that region along with their radial velocities. I just need to learn the name of that function and how to call it.

**Tags:** data-analysis, python, gaia, astropy, radial-velocity

> **Comments:**
> **username_1**: Any particular aspect of the data you're trying to learn more about ? The question is a little broad...  
> **username_0**: Yes, I'd like to generate various plots of the heliocentric velocities of stars in our galaxy, making different restrictions on distances from the sun.  I'd like to see what the data looks like with correction for the proper motion of the sun and without.  Now, I know I could find plots done by others, but I really want to learn how to generate my own plots.  I'm pretty new to python.  
> **username_2**: @ThomasBrennan I've moved your comment back into your post. Comments are considered temporary, and can be suddenly cleaned up from time to time, and some readers don't even stop to read the comments, so it's always best to reply to requests for clarification with an edit to your post if it makes sense. Feel free to adjust further, and welcome to Astronomy!  
> **username_3**: What is the astronomy question here?  

---

## 0 answers

