/aflak

Advanced Framework for Learning Astrophysical Knowledge | Prototype. Currently being rewritten from scratch in https://github.com/aflak-vis/aflak

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

aflak - Advanced Framework for Learning Astrophysical Knowledge

Project moved and currently undergoing a complete rewrite at https://github.com/aflak-vis/aflak

Environment

Support Python3.5+.

Install

You can install aflak using any of the following methods.

Using pip

This is the recommended way of installing aflak as a user. Please make sure to install aflak for python 3.x. It will not work on python 2.x.

Depending on your python install, you should be able to run aflak form the command line with any of these commands

Using .deb files

Only `Debian Stretch` and `Ubuntu 17.10` are supported for now.

Download the .deb file of the latest release from https://github.com/malikolivier/aflak/releases

Install it with:

Remove it with:

From source locally

Open a FITS file

aflak my-fits-file.fits

The provided FITS file is required to have the following extensions:

  • 'FLUX': 3D data containing 2D luminosity component for each wavelength value
  • 'WAVE': 1D data containing value of each target wavelength

After some fiddling you should be able to get a window like below:

Get sample FITS files

The Makefile contains a few recipes to get sample fits files. Run make as below:

make data/manga-7443-12703-LINCUBE.fits

To see a fits file header

fold -w 80 foo.fits | less

TODO

  • Show arbitrary sums over spectral data (currently only show one frame)
  • Benchmark / Test with several fits files
  • Set a label on the histogram's Y-axis (flux [1E-17 erg/s/cm^2])