Data Carpentry Astronomy Workshop¶
This notebook imports the libraries we need for the workshop.
If any of them are missing, you’ll get an error message.
If you don’t get any error messages, you are all set.
from wget import download
import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.path import Path
from matplotlib.patches import Polygon
import astropy.coordinates as coord
import astropy.units as u
from astropy.table import Table
import gala.coordinates as gc
# Note: running this import statement opens a connection
# to a Gaia server, so it will fail if you are not connected
# to the internet.
from astroquery.gaia import Gaia
Created TAP+ (v1.2.1) - Connection:
Host: gea.esac.esa.int
Use HTTPS: True
Port: 443
SSL Port: 443
Created TAP+ (v1.2.1) - Connection:
Host: geadata.esac.esa.int
Use HTTPS: True
Port: 443
SSL Port: 443
During the workshop, we might put code on Slack and ask you to cut and paste it into the notebook.
If you are on a Mac, you might encounter a problem with smart quotes.
To check, following this link to our Slack workspace and find the pinned message with the setup instructions. It contains a line of Python code.
Copy the code from Slack and paste it in the cell below. If it runs without producing an error, you are all set.
Otherwise, you might have to change your system settings so it does not convert straight quotes to smart quotes. If you have trouble with this, let us know and we will provide more details.