Get into TESS data the easy way

There are excellent tutorials out there for getting started with TESS data. While you can look for software that handles the data in different ways to do more science, getting to the point that you can plot light curves taken with the space telescope is relatively straightforward. All software and data is free and publicly available too making it a great thing for citizen scientists to get into.

Steps:

1. If you are unfamiliar with how transits work, why they indicate an exoplanet is there, and how they give us parameters like the radius you should start there. If you start to get really into this you’ll want to learn more about the caveats of exoplanet transits by reading papers (which you can find on GoogleScholar, NASA ADS, or arXiv (which is free)). But for now a general understanding is fine. I suggest the first two pages of this tutorial (carry on if you like of course, they go into how to do this sort of science with an older system).

Next, if you don’t have programming experience you should learn a bit of Python. Python is probably the most widely used language in astronomy right now. It’s free and has lots of resources online (it’s sort of a running joke that users just google whatever error they run into) making it relatively easy to learn. Depending on which tutorial you use, you will most likely need to download Python first. You may also want to get a program to easily edit code in, but it’s not necessary, you already have some software like Vim and TextEdit on you computer.

2. So: first* install Python. I suggest doing this by installing the widely popular Anaconda distribution, this will give you several useful tools and make it very easy to install related things in the future (you may have already seen things saying to install software from online using a command that starts with “conda” (or “pip”)). It’s really common to have hiccups at this stage so don’t be discouraged! You can google specific errors but general help for windows is available here, and for mac here.
* If you are very unfamiliar with programing and computers you might also look for a command line/bash tutorial or just a list of basic commands. You’ll type things directly into bash in most cases so you don’t need to be fluent but you should feel comfortable with being there.

3. Next, try a tutorial. I suggest this tutorial on data visualization from codeacademy (note that it utilizes jupyter notebook, also very popular with astronomers but it’s going to create a virtual environment for writing and executing python within your browser). There are also very good tutorials on the Python website. R3 schools, Coursera, and YouTube are also good places to learn. Just keep in mind you don’t need to be proficient yet. The next steps tell you what to type, but you want to be able to understand it enough you can guess what it’s saying.

4. At some point you’ll want to familiarize yourself with STSci’s MAST website. On this website you can search for all the observations with publicly available data for a given object (star). In the search bar at the top you can put in the name of a star (identifiers, catalog phone numbers and common names all usually work, you might also want to be aware of a website called SIMBAD too where you can find positions and magnitudes in various colors). MAST might bring up several rows of data from TESS, Spitzer, Hubble and others. You don’t need to download data from here but have a look around and see if you can figure out what’s available there. Do keep in mind it will also pull up data for nearby stars, so you’ll want to check that the separation value in the last column is zero.

5. Now you can download Lightkurve. This is a Python package where someone basically wrote a bunch of routines that do things people commonly want to do with TESS (or Kepler) data so that we don’t all have to write our own terrible versions (it’s also an ongoing joke that most (but not all!) astronomers are terrible programmers… a true joke). Since you have anaconda already you can learn how to install Lightkurve here.

6. Finally, you’ll want to familiarize yourself with Lightkurve. They have their own excellent tutorials. They do leave out explanations of what some of those values are. And depending where you’re running this you may need to “fill in the gaps” in their instructions (for example you may need to type plt.show() to get the plot you just made in their tutorial to actually show… assuming you imported matplotlib as plt… which should look familiar from your Python course in step 2.). The four short tutorials on object types at the top of the tutorial page are a great place to start. After that, I recommend learning about retrieving a planet candidate, making and using periodograms, and adjusting masks (and anything else that interests you). If terms are unfamiliar try googling; astronomers spend a lot of time googling (if you’re a student please also feel encouraged to ask your advisor, I’m just trying to write this for the citizen scientist).

Hopefully you’ve been able to work your way through hiccups and stumbles and gotten this far. You are now able to look for, and plot TESS data for any system you’re interested in. If you need help interpreting things you can do what any other astronomer would do: read more papers, test things, and ask colleagues.

0. If I could go back and tell myself one thing it would be to be more thoughtful about the organization of files on my computer. So if you’re “type A” maybe first browse the web for advice on how to organize code.

Ms. Welch's Middle School Science Classs

This is a repost from January 2017 as I have since migrated my blog.

It was really really fun to talk to bright young folks about exoplanet science and astrobiology.  I've collected a few helpful resources below.

Programming/Coding

I mentioned the fact that I think coding should be part of the required curriculum in schools.  Along with taking that new high school programming course when you get to it, you can get a head start now by teaching yourself.

The website Codeacademy has courses which are pretty easy to navigate.  I would personally recommend taking their python course.  Python is one of the easiest languages to learn at the moment because it is super popular right now, free, and has a whole lot of support on the internet.  When you run into a problem, just google it.  Chances are you're not the first.  If you get bored easily, I'd recommend thinking of a little task you'd like your computer to do and writing a script (code file) for that.  Maybe you want to have your computer give you the weather, or maybe there is a value you have to compute a lot, perhaps make a simple game.  

For python I recommend the Ureka bundle (a python friendly terminal and easy access to useful software) which you can download here.  It's astronomy-centric but very easy to install and use.  If you use the online course, you do everything (writing the code and running it) on the website and won't need that.  If you tinkering on your computer with code, try TextWrangler.  You can save text documents there with the .py extension and it will automatically color-code things for you.

If you feel overwhelmed by python, you can learn a lot of the logic behind programming using Excel or Mathematica.  Keep in mind that there are many languages you can start with, so if one doesn't click, try another.  I personally found Ruby-on-rails confusing as hell, and couldn't get C++ either* but when I had to learn Fortran and Python simultaneously it was like I was suddenly a polyglot and could make sense of any programming language thrown at me.

* Weirdly no one could explain to me why it needed to be complied... "Compiling" is just turning the C++ speak into computer language (binary) for anyone else who can't get a straight answer...

(Also: here's an astronomer's cheat sheet on how to get started with python)

More on Astrobiology

Sort of curious but want to learn painlessly?  Videogames like Spore and RNA have a lot of astrobiological concepts in them.  Personally, I notice a lot of things in the Mass Effect series that play off of it (extinct life and fossils everywhere, and that homo-chirality thing that makes some species unable to eat each others' food is totally real and possibly comes from the polarised light of the sun their home planet orbits FYI in real life eating the wrong chirality doesn't always harm you, sometimes you just "pass" it).  The ideas in a video game or fiction book might be "polished" to allow for artistic license, but there's a lot of allusions to real science within them.  Similarly, once you start learning about astrobiology you'll notice little things in sci-fi movies and tv shows alluding to it to like silicon based life in Star Trek.

saganyoureawesome.gif

Also consider watching nonfiction series like Carl Sagan's Cosmos.  He is the most painless speaker to listen to.

Need something succinct?  Wikipedia's pages on astrobiologybiosignatures, and habitability are fairly accurate at the moment.

Just want a little more info?  Watch the ESA's introductory video  

Prefer to read? I highly recommend Carl Sagan's books (all of them... go to the library).  He makes things super easy to understand without talking down to you.  I also recommend "Rare Earth" by Brownlee and Ward and "Here be Dragons" by Levay and Koerner to see the arguments for and against life or intelligent life being common.  

Super keen and wish you could just take classes already? Take a free online course