Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Process FITS files

Project Description

https://travis-ci.org/mwcraig/msumastro.png?branch=master https://coveralls.io/repos/github/mwcraig/msumastro/badge.svg?branch=master

This software was developed primarily to process the files coming off the Paul P. Feder Observatory at Minnesota State University Moorhead. We needed to do several things:

  • Add in some essential meta-data (like LST, JD, AIRMASS) that isn’t added by the software that grabs the images.
  • Add astrometry using http://astrometry.net
  • Rummage through a tree of directories containing images and create, for each directory, a table of user-configurable image information (e.g. file name, filter, image type, object)

There is one generally useful piece: image collections

ImageFileCollection has been moved to ccdproc.

It is marked as deprecated in msumastro version 0.9 and will be removed in the next release.

Make a collection by providing the name of a directory and a list of the FITS keywords you want the collection to make a table of (or * for all keywords in any of the files):

>>> from msumastro import ImageFileCollection
>>> ic = ImageFileCollection('path/to/my/directory', keywords='*')

Then you can easily iterate over all of the HDUs (well, primary HDUs), headers and/or data, filtering by FITS keyword values (* represents any value):

>>> for hdu in ic.hdus(imagetyp='LIGHT', object='M101'):
>>>     pass

If you don’t mind a bit of hidden magic, the iterator will also automatically save a copy of each FITS file it acts on if you tell it where you want the new files to go:

>>> for hdu in ic.hdus(save_location='some/other/directory', imagetyp='LIGHT', object='M101'):
>>>     hdu.data = 2 * hdu.data   # modified HDU automatically saved

Documentation is at http://msum-astro.readthedocs.org

Release history Release notifications

This version
History Node

0.9.7

History Node

0.9.6

History Node

0.9.5

History Node

0.9.4

History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

History Node

0.9.0

History Node

0.8.6

History Node

0.8.5

History Node

0.8.4

History Node

0.8.3

History Node

0.8.2

History Node

0.8.1

History Node

0.8.0

History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

History Node

0.6.0

History Node

0.5.1

History Node

0.5.0

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.3.1

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
msumastro-0.9.7.tar.gz (684.3 kB) Copy SHA256 hash SHA256 Source None Mar 25, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page