Skip to main content

Two dimEnsionaL spectrAl analysiS for muSe And xshooteR

Project description

TELASSAR : Two dimEnsionaL spectrAl analysiS for muSe And xshooteR

A clunky, hideous package for doing what I want and upsetting every real programmer in our galactic quadrant. Brute force and ignorance are the tools of my trade. Nothing much beyond visualisation for (pseudo)long-slit spectra, with new functionalities to be added when I figure out how!

Basic Bits

Can generate WCS information for a 2D slice either from a FITS file directly, or from a custom data array + header. No promises, though. At the very least it makes an attempt!

Usage

from telassar import PVSlice
my_file = PVSlice(filename='some_file.fits')

or

my_file = PVSlice(data=my_data, header=my_header)

A 2D slice can also be reduced to a 1D spatial or spectral profile given a wavelength range and offset range:

new_file = my_file.spatial_profile(arc=[0, 30], wave=[6725, 6730], spat_unit=True, spec_unit=True)

For quick data viewing, a contour plot is easily generated:

my_file.plot_contours()

Some further customization can be done with the plots; check out the notebook in the examples folder for a better idea.

Features

Not a lot here at the moment, but a few things are being included:

  • Registering/unregistering skyline emissions;

======= TODO

  • Add LMFit-py modeling options for fitting profiles
  • Expand spatial/spectral profile class functionality (ie plotting, fitting, and integration)
  • Learn how to do everything properly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telassar-0.0.1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telassar-0.0.1-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file telassar-0.0.1.tar.gz.

File metadata

  • Download URL: telassar-0.0.1.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.8

File hashes

Hashes for telassar-0.0.1.tar.gz
Algorithm Hash digest
SHA256 153e8d0e6a710197f9250bd5529579253b7d64eeff39f7f2ec5a342f6efca898
MD5 c03caaf03aff2bbf838229b6e6217647
BLAKE2b-256 261c7d10368e6f9d179bdf687c391f3a229a015d9ddcdf4933fe63971df17ee0

See more details on using hashes here.

File details

Details for the file telassar-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: telassar-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.8

File hashes

Hashes for telassar-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8c5885e4370384e0c848390c53e4a03832c3db1c99ee524ecd4c545eaf3422d
MD5 47ba848311e95644ff9b14adfb03e483
BLAKE2b-256 760b5620f1f2dd413629a94bd67d646de49c32ed0d1c9566c93139e5c4498372

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page