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+https://github.com/AlecThomson/pyfitsrotate.git

From PyPI:

pip install fitsrotate

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.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

fitsrotate-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fitsrotate-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 33e0a286e35cc4f9ac953888090bc13b4efb83067c1bccd5c1d774851ee18d99
MD5 6d7e6a353ebc61c98739f6d95265538c
BLAKE2b-256 e4328a94c20675d5cbdb51e3ee91f4118d2519947195731d2118bfab3b68a149

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fitsrotate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63b7e2095d95cd963782a582c6e19f824293d0c53b414ed06954a40ca304ed38
MD5 ec654135acbd9df415caf78ffd7a49cb
BLAKE2b-256 5392806f1223d9cb2d3d5ae43cca50a9b68d0382ce37691857c93e07b49f45f1

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