Skip to main content

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.

Metadata

Release files for fitsrotate 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fitsrotate 0.1.0
File Size Uploaded
fitsrotate-0.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fitsrotate 0.1.0
File Interpreter ABI Platform
fitsrotate-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / fitsrotate-0.1.0.tar.gz

Download URL fitsrotate-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
33e0a286e35cc4f9ac953888090bc13b4efb83067c1bccd5c1d774851ee18d99
BLAKE2b-256 checksum
How to use checksums
e4328a94c20675d5cbdb51e3ee91f4118d2519947195731d2118bfab3b68a149
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.13 Darwin/20.6.0

Release files / fitsrotate-0.1.0-py3-none-any.whl

Download URL fitsrotate-0.1.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63b7e2095d95cd963782a582c6e19f824293d0c53b414ed06954a40ca304ed38
BLAKE2b-256 checksum
How to use checksums
5392806f1223d9cb2d3d5ae43cca50a9b68d0382ce37691857c93e07b49f45f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.13 Darwin/20.6.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page