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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fitsrotate-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 22ffd474dbce762611816c6e79511a6edf9b2c30a0022dbf68c676fae386d899
MD5 0ae7d3f13243d1d1b1fe6a50aee00c69
BLAKE2b-256 e6480a02fdef26b39ee72c14d4406a509cbafe12eb2e3b1503d3fcd6ed8e6036

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fitsrotate-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95d8a93e1143e5c213a1175579c2d3f8ad485c0330e5b2bd75329aa623dd5152
MD5 de7f01ae45f1d8ed7d5b2f0a03a3ec54
BLAKE2b-256 803dc93417ad5f016959a9a5c83483afe77fa653bff442b3ba32cdd92dde5f41

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