ARIEL AIRS convenience tools for analysis and data manipulation
Project description
AIRSplorer
Convenience tools for analysis and data manipulation related to ARIEL AIRS. The package provides utilities for working with images and cubes, basic flux calculations, coordinate conversions, mask handling, I/O helpers, and common plotting routines.
- Python ≥ 3.11
- License: MIT
- Repository: https://github.com/ccossou/airsplorer
Key features
- Image and cube manipulation (load, save, simple transforms)
- Basic photometry and flux/statistics utilities
- Sky/pixel coordinate conversions
- Mask creation, application, and operations
- Plotting helpers and tabulated outputs
- Test suite for core functionality
Indicative modules:
coord: coordinate conversions and utilitiesflux: simple photometry and flux-related computationsimager/imlib: image operationsmask: mask creation and manipulationread/write: I/O helpersplot: common plotting helpersutils: assorted utility functions
Installation
From PyPI (when available):
bash
python -m pip install airsplorer
From source (development):
bash
git clone https://github.com/ccossou/airsplorer.git
cd airsplorer
python -m pip install -e .
Main runtime dependencies are installed automatically.
Quick start
python
# Example imports (see function docstrings for exact APIs)
from airsplorer import coord, flux, imager, mask, utils, read, write, plot
# Loading and saving (adjust paths and formats to your data)
# data = read.load_image("path/to/file.fits")
# write.save_image(data, "path/to/output.fits")
# Image operations
# img2 = imager.normalize(data)
# m = mask.create_threshold_mask(img2, threshold=5.0)
# img3 = imager.apply_mask(img2, m)
# Flux calculations
# f = flux.aperture_photometry(img3, center=(x0, y0), radius=5)
# Coordinate conversions
# px, py = coord.sky_to_pixel(ra, dec, wcs_header)
# ra2, dec2 = coord.pixel_to_sky(px, py, wcs_header)
# Plotting
# plot.imshow(img3, title="Processed image")
Notes:
- Check each function’s docstring for signatures, units, and options.
- Adjust examples to your data formats and WCS headers.
Documentation
Install optional documentation dependencies:
bash
python -m pip install "airsplorer[docs]"
Build locally with Sphinx (if you keep docs in a docs/ folder):
bash
sphinx-build -b html docs docs/_build/html
Testing
Run the test suite:
bash
pytest
With coverage:
bash
pytest --cov=. --cov-report=term-missing
Contributing
Contributions are welcome:
- Fork the repository and create a feature branch.
- Install in development mode:
python -m pip install -e . - Add tests that cover your changes.
- Run tests locally:
pytest - Open a pull request with a clear description.
Please follow idiomatic Python style and add documentation (docstrings, examples) where helpful.
License and citation
- License: MIT
- If you use airsplorer in scientific work, please cite the repository and the software version you used. A DOI or BibTeX entry may be added in the future.
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
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 airsplorer-0.5.4.tar.gz.
File metadata
- Download URL: airsplorer-0.5.4.tar.gz
- Upload date:
- Size: 868.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cd7e55ce0116ae2a433849215cd29e7a73412c064eefea974f667637b0ca5aa
|
|
| MD5 |
b8d0e772a41b1d7da9375d1579522252
|
|
| BLAKE2b-256 |
1db55a2ebf2558b7b5cc9876082022b51dfbc79c81ec912c23a913cc2bfe6899
|
File details
Details for the file airsplorer-0.5.4-py3-none-any.whl.
File metadata
- Download URL: airsplorer-0.5.4-py3-none-any.whl
- Upload date:
- Size: 47.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab35b6b4c340cdaf7669f24d914608d9143919602f680fa7e1e9a9b785a99746
|
|
| MD5 |
f354ccea1aa0e0e0e72772bc126110cc
|
|
| BLAKE2b-256 |
0f0cc051c401a51687053f6cb0c3726d7a182b23311198b5a3e6197253351a00
|