{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", " SELECT columnnames\n", " FROM tablename\n", " WHERE conditions\n", "\n", "To make sure all of the abundances are valid, required that each abundance be larger than -10 (bad values are flagged as -999). You can also select on apogeeStar.extratarg = 0 as we did last time" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from astroquery.sdss import SDSS\n", "sql=\" \n", " \"\n", "\n", "print(sql)\n", "dr17=SDSS.query_sql(sql, data_release=17) \n", "print(len(dr17))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "How many objects did you get?\n", "