2
$\begingroup$

I'm interested in trying to use the data that will be returned by TESS to apply some machine learning/computer sciences concepts. I'm not sure yet what I want to try to do with it (though I have some ideas - see end comments). This because I don't really understand the data structure it will be using.

So essentially I would like to first some help to get a high-level view of how the TESS data is structured. Then a bit of guidance as to how I could visualize it/get started with some basic example

Additional info/what I know at this point

I've checked out the MAST page. It details what type of FITS documents will be returned.

I have downloaded samples of some of these data products and I see they all come in FITS format. On Ubuntu, you can open that in Aladin. However Aladin in itself is a fairly involved piece of software. Do I need Aladin for this, or are there simple alternatives to just view the data quickly to help get a feel for what it means? In other words what kind of navigator do you use for FITS files?

I'm pretty new to astronomy - I'm coming at this rather from a computer science perspective. Some basic suggestions as to what kind of observation an amateur astronomer might want to look at would be welcomed if you have some.

The data linked above (MAST page) are simulated data (real data will only be available in a couple months). This is fine - mostly interested in being functional with the data when they arrive.

Data analysis ideas:

  • Using kmeans or similar to try to extract what are some of the "typical" transit light curves
    • Generating those transit light curves from the raw data, say from a target pixel
$\endgroup$
  • 1
    $\begingroup$ Learn python. There are lots of libraries to read and manipulate fits files. $\endgroup$ – Rob Jeffries Apr 30 '18 at 21:48
  • $\begingroup$ I'm actually good on that front - it's really more about getting started with the data... $\endgroup$ – Francky_V May 1 '18 at 0:55
  • 1
    $\begingroup$ Although combining that comment with the other answer - I've been checking astropy which seems to be the best bet for that kind of data. $\endgroup$ – Francky_V May 1 '18 at 21:12
2
$\begingroup$

An insightful option is to open in a python IDE using Astropy. I find it useful because you can manipulate the files as your learn their structure.

It is also possible to use matplotlib in conjunction with Astropy and then basically have a FITS file viewer that you can code yourself.

Something like:

import astropy
import matplotlib.pyplot as plt
from astropy.visualization import astropy_mpl_style


    def open_fits_file(fits_path):
        for file in Path(fits_path).iterdir():
            #Not really using the with, but it'll manage closing the file...
            with fits.open(file) as opened_fits:
                #printing header infos for that file
                opened_fits.info()
                plot_image(fits.getdata(file, ext=2))

Then to plot the image:

def plot_image(fit_image_data):
    #astropy has better plot settings for this use
    plt.style.use(astropy_mpl_style)
    plt.figure()
    plt.imshow(fit_image_data, cmap="gray")
    plt.colorbar()
    plt.show()

I used that to plot the pixels from these simulated data linked in the question.

As mentioned by Mike G, HEASARC as a list of viewer, including FV (fits viewer). It works fine and it has some built-in support to link up with other astronomy database. It has an apollo-era feel in terms of appearance, which is nice... I guess?

$\endgroup$
0
$\begingroup$

HEASARC keeps a list of FITS viewers. Maybe one of those will meet your requirements. Of course capabilities and usability vary widely. fv did enough to help me answer another question here.

The TESS Science Data Products Description Document gives a one-line description of each of their FITS header fields. If Wikipedia and exploratory testing don't close the gaps, ask again here.

$\endgroup$
  • $\begingroup$ YEah I kinda realize that fits data can actually be a pretty complex data structure. I've never really worked with data structure that complex - so that's be my first area of exploration. I'll update things here when I make progress... thanks. $\endgroup$ – Francky_V May 1 '18 at 21:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.