Skip to main content

Rotate a FITS file to put spectral axis first

Project description

PyFITSRotate

Description

A simple Python script to rotate FITS cube axes. It uses the astropy package to read and write FITS files.

The default action is to rotate the spectral axis to be the first axis. This is useful for heavy IO operations on FITS cubes/

Installation

From github:

pip install git+git://github.com/alecthomson/pyfitsrotate.git

From PyPI:

pip install pyfitsrotate

Usage

❯ fitsrotate -h
usage: fitsrotate [-h] [-o [OUTFILE]] [-e EXT] [-s SWAP_AX] filename

Rotate a FITS file to put spectral axis first.

positional arguments:
  filename              Input filename.

optional arguments:
  -h, --help            show this help message and exit
  -o [OUTFILE], --outfile [OUTFILE]
                        Output filename. Defaults to input filename with .rot.fits extension.
  -e EXT, --ext EXT     Extension number. Defaults to 0.
  -s SWAP_AX, --swap-ax SWAP_AX
                        Axis to swap with spectral axis (numpy convention). Defaults to -1.

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

fitsrotate-0.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

fitsrotate-0.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file fitsrotate-0.0.0.tar.gz.

File metadata

  • Download URL: fitsrotate-0.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.13 Darwin/20.6.0

File hashes

Hashes for fitsrotate-0.0.0.tar.gz
Algorithm Hash digest
SHA256 d5892a28d786d8ff989a2531076694366cd8fa253cea7ea954822fb03a6b3681
MD5 05711dcaa277311208ed5a5068341183
BLAKE2b-256 2b60ca6c1148ef27379a128b0950f318d13465d26f0b96939efc2af5438b7997

See more details on using hashes here.

File details

Details for the file fitsrotate-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: fitsrotate-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.13 Darwin/20.6.0

File hashes

Hashes for fitsrotate-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3228e1df50d6fa8f9648239009fe70d4345718807eb1b925b1a55c7bbabea23a
MD5 6892291d56033fdddc2b8b9632256a8b
BLAKE2b-256 63ccd42f1644bbb4ad8787a3f2635ca6d0d4f798c39c22b167d20b02bb9fa8e5

See more details on using hashes here.

Supported by

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