Skip to main content

"Magnetogram Transformations: A Python Toolkit for Transforming and Enhancing Magnetogram fits"

Project description

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
GNU GPL v3 License


© 2024 Temitope Adeyeha, Chetraj Pandey, Berkay Aydin

Data Mining Lab

Georgia State University

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

tamag-1.0.0.tar.gz (41.6 MB view details)

Uploaded Source

File details

Details for the file tamag-1.0.0.tar.gz.

File metadata

  • Download URL: tamag-1.0.0.tar.gz
  • Upload date:
  • Size: 41.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.13

File hashes

Hashes for tamag-1.0.0.tar.gz
Algorithm Hash digest
SHA256 73e5fbe966a2741f4008d96d5331427f9ce037247383858499b2efb371d0db17
MD5 47f89ddb38e5f8a13eedffbf17cdce04
BLAKE2b-256 da1d1adc147edd337a29356f41e0320598aa7ea477fdc8fdc54a40ff780bd833

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page