Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This tutorial will show you how to do a search on a single coordinate, within the TESS Exoplanet Candidate Target List (exoCTL) in the MAST Portal. Specifically, we will do a search centered on the K2 Campaign 2 fielduse MAST CasJobs to conduct a large query that will select all dwarf stars with temperatures comparable to K dwarfs in the southern hemisphere from the TIC. We'll also show off some of the main areas of CasJobs and how to download your tables once you run a query. Note that in addition to the TIC and CTL, tables from other missions like Kepler, K2, GALEX, and PanSTARRS, as well as several catalogs from High Level Science Products, are all available.

You can save the search results at any time using the Export Button From the dialog menu that appears able to select the format of your output file and whether you want to export all the available columns in the catalog, or only those that are currently displayed in the Search Results Grid.Image Removed


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid

Upon visiting the MAST Portal, the first step is to change the collection of data we are searching in from the Context menu The first thing you'll need to do is sign into CasJobs. The Login button is located towards the top of the page (Item #1) at the top left.



Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid

From the Context drop-down menu, select MAST Catalogs, then, in the Mission drop-down menu that appears On the login page, enter your user name and password (Item #1), select TESS CTL v7. 02 for the exoCTL list. Note that the version number will change as newer editions replace older ones in the Portalthe MAST CasJobs account is not the same as your general STScI (MyST) account. If you don't have a MAST CasJobs account, you can register for one using the link towards the bottom of the page (Item #2).



We are now ready to do a target search by entering text into the Search Box (Item #1). The Search Box can accept coordinates in either decimal degrees or in sexagesimal format. You can specify a search radius by adding r = and then your desired radius. For example, r = 0.3d is a 0.3 degree search radius, r = 5m is a 5 arcminute search radius, and r = 3s is a 3 arcsecond search radius. For our example, we'll search on the K2 Campaign 2 field center located at 16:24:30 -22:26:50 with a search radius of 1.7d, which is roughly the size of a Kepler module. Note that this search may take a while, since searches with radii larger than a degree typically return a lot of rows.

Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid

After you sign in, you'll be on the Query page. The first step whenever you want to run a SQL query on a TESS table is to make sure the Context drop-down menu is set to TESS (Item #1). If you want to query other tables from other missions, or from output tables you create, you can change the Context using this menu before you execute your query.



Image Added


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid


Once we have selected TESS as our Context, we can write our query in the space below. This tutorial is not designed to give you a full introduction on how to write SQL queries, but we will explain our basic query. The first line selects all columns from the TIC, which is stored as a table called CatalogRecord inside CasJobs (Item #1). The next three lines apply some conditions to our query, namely, we want all stars that have temperatures between 3900. and 4200. K, are in the southern hemisphere, and are classified as a dwarf based on their reduced proper motion (Item #2). The last line tells CasJobs to store the results of our query as a table called tic_kdwarfs into MyDB (Item #3). MyDB is the Context that holds any output tables you make using CasJobs, and is your own personal workspace where you can write (create) and drop (remove) tables. On the upper right (Item #4), you can check that your syntax is valid SQL before running a job with the Syntax button. The Quick button allows you to run a SQL query directly on this page, provided the job takes < 60 seconds to run and doesn't use too much memory. Finally, the Submit button will send a query to the job manager, allowing you to submit any query to the processing queue. Even if the job takes a long time to run, once submitted to the queue, you can exit CasJobs and return at any time to check on the status or get your output table once finished.



We now see the results of our search. First, note that the search radius we specified is reported back to us in the query translation button (Item #1). The search results area has three main panels, on the left is the Filters panel (Item #2), where you can select subsets of your returned rows by filtering column values. In the middle is the Search Results Grid (Item #3), which contains the table of results itself (hint: columns can be sorted by clicking on the headers). On the right is the AstroViewer (Item #4), which is a 3D sky map that will overplot the footprints of observations or catalog objects from your search results, and offers a wide range of background images from surveys that span the electromagnetic sepctrum from X-rays to the radio. We can see all the TIC sources in our 1.7 degree search radius quite clearly.

Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid


After you Submit a job to the queue, you will be brought to this page, which will continuously refresh every 30 seconds, allowing your to monitor the status of your job (Item #1). You can also manually refresh this page if you want to get a status update faster. When a job is finished, it will show up in blue as Finished. If a job fails for some reason, it will show up in red as Failed. You can see your entire job submission history by visiting the History tab at the top (Item #2).


Image Added


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid


The MyDB tab (Item #1) is an important section of CasJobs, because it allows you to get to your output tables and see the available tables provided by MAST. Similarly to the Query tab, a drop-down Context menu allows you to swap between available Contexts (Item #2). In this example, we'll select MyDB from the drop-down menu, where we will see our output from the query we just ran (Item #3).


Image Added


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid


We can explore what's in a table by selecting it from the list. If we click on the tic_kdwarfs link, it will load the table in the Explore section (Item #1), where there are several further options available to us.


Image Added


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid


If we click on the Sample link, we will be able to see the table schema (column names and data types) as well as a few random rows to get a sense of what the table contains (Item #1).


Image Added


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid


If we click on the Job link, we will be able to see information about the query used to create the table. In particular, the exact query used is located at the bottom (Item #1), along with the ability to re-submit this query back to the Query tab, making it easy to re-generate or update a query at any time in the future!


Image Added


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid

If we click on the Download link, we will be able to export our table of results in a variety of formats, including CSV text files and FITS binary tables (Item #1).

Once you hit Go, you'll be

sent to the Output tab, where your file will be prepared for downloading. Note you may need to periodically refresh the page until your file is ready for downloading.


Image Added


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid

As mentioned previously, you can also see the content of MAST-provided tables by changing the Context drop-down menu (Item #1). If we change it to the TESS Context, we'll see the available TESS tables, including the TIC (listed as the CatalogRecord table), and the CTL. If we click on any of these links, we can further explore these tables on the right side of the page. If we click on the Notes link, we can see a description of the table and a summary of the table schema (Item #2).


Image Added


Panel
borderColorblack
bgColor#e6e6ff
borderWidth1
borderStylesolid

Similarly, we can use the Sample link to see a few random rows of the table (Item #1). This is a great way to get a quick look at a table, even a very large one, before writing any queries.


Image Added