TaMag: Magnetogram Transformation Module
TaMag is a Python module designed for transforming magnetogram maps using various techniques that reduce information loss. This module is particularly useful for augmenting magnetograms, addressing data imbalance for predictive modeling.
Installation
TaMag requires Python (>= 3.9) and the following dependencies:
- numpy (>=1.17.0)
- scipy (>=1.3.0)
- astropy (>=5.0.6,!=5.1.0)
Install TaMag using pip:
pip install tamag
or using conda:
conda install -c conda-forge tamag
Usage Example
from tamag.transforms import Flip
from tamag.datasets import load_fits_data
import warnings
warnings.filterwarnings("ignore")
import matplotlib.pyplot as plt
# Create an instance of the transformer
transformer = Flip(direction='vertical')
# Load a sample magnetogram
magnetogram, magnetogram_header, bitmap = load_fits_data()
# Transform the magnetogram
transformed_magnetogram = transformer.transform(magnetogram,scale=255,rgb=True)
# Display the results
plt.figure(figsize=(15, 5))
plt.subplot(1, 2, 1)
plt.imshow(magnetogram, cmap='gray')
plt.title('Original Image')
plt.subplot(1, 2, 2)
plt.imshow(transformed_magnetogram, cmap='gray')
plt.title('Flipped Image')
Documentation
For detailed documentation and examples, visit the TaMag Documentation.
Changelog
See the Changelog for information about notable changes.
License
TaMag is distributed under the GNU License. See GNU General Public License, Version 3 for details.
Citation
If you use TaMag in a scientific publication, please consider citing our work. Refer to the Citation Guide for details.
Acknowledgment
This work was supported by NSF Grant Award 2104004.
This software is distributed using the GNU General Public License, Version 3
© 2024 Temitope Adeyeha, Chetraj Pandey, Berkay Aydin
Metadata
Release files for tamag 1.0.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 | |
|---|---|---|---|---|
| tamag-1.0.0.tar.gz | 41.6 MB | Without provenance | Details |
Release files / tamag-1.0.0.tar.gz
| Download URL | tamag-1.0.0.tar.gz |
|---|---|
| Size | 41.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73e5fbe966a2741f4008d96d5331427f9ce037247383858499b2efb371d0db17
|
|
BLAKE2b-256 checksum How to use checksums |
da1d1adc147edd337a29356f41e0320598aa7ea477fdc8fdc54a40ff780bd833
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.13
|
Security for tamag 1.0.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.