FITS 2D/3D physical size analyzer
Project description
fits2physical
Overview
fits2physical is a Python package to analyze FITS files, compute pixel and physical sizes, and generate plots.
Installation
Install via pip (after PyPI release) or GitHub:
.. code-block:: bash
pip install f2p
# or directly from GitHub
pip install git+https://github.com/siwakotiutsav/fits2physical.git
Usage
Analyze a FITS file and get dimensions:
.. code-block:: python
import f2p
df, fig = f2p.analyze("../data/ngc253/NGC253_sky_v1_17_1_ch3-shortmediumlong_s3d.fits",
distance_mpc=3.5)
print(df)
fig.show() # Optional: display figure
Expected output:
.. code-block:: text
Quantity Pixels Angular Physical
0 Length 85.529646 17.10592943977466 arcsec 290.26160171739974 pc
1 Breadth 50.442038 10.088407695872492 arcsec 171.18493250494006 pc
2 Diagonal 97.406365 19.48127334931105 arcsec 330.5675745813207 pc
Figure
Here’s the figure generated by the analysis:
.. image:: docs/_static/example_plot.png :alt: FITS Analysis Figure :align: center :width: 80%
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file f2p-0.1.1.tar.gz.
File metadata
- Download URL: f2p-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a927a4979bf51d8d8b3eed95510cdbb14bc72db9ddc1ddc3396d2c37628b316
|
|
| MD5 |
a349008a294fb16d035f0383d82e8e56
|
|
| BLAKE2b-256 |
20b5c5326392e0e92e02a716691831f2f4714af34ca60f7ca19646a017d282b4
|
File details
Details for the file f2p-0.1.1-py3-none-any.whl.
File metadata
- Download URL: f2p-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df2015d3d65adf2d991f32c85d4b01f1ecc1f907b1be5219c531451839030022
|
|
| MD5 |
06b4b02e768fa905938cb6e1fb9f0db3
|
|
| BLAKE2b-256 |
68425216a19d241fc53bdc98f83d992da004eef21f219ebfd217e2457dd99f56
|