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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fitsrotate-0.1.0.tar.gz | 3.6 kB | Without provenance | Details for fitsrotate-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fitsrotate-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fitsrotate-0.1.0-py3-none-any.whl |
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
|
Security for fitsrotate 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.