Skip to main content

For radiometric calibration and point spread function deconvolution of IRIS spsetcrograph data

Project description

irispreppy

For radiometrically calibrating and PSF deconvolving IRIS data.

To install simply run pip install irispreppy.

I dislike how I need to own proprietary software (IDL) just to simply prepare my data. I use Python for my analysis, why can't I radiometrically calibrate and deconvolve with it? This has been a passion project of mine during my PhD (and beyond). The radiometric calibration keeps itself up to date with the response files by checking https://hesperia.gsfc.nasa.gov/ssw/iris/response/ every time it is run. If it finds new files, it downloads them before continuing.

These scripts should be general purpose and "just work". No janky hacks are present.


tl;dr usage

irispreppy takes a single HDU object. To calibrate and deconvolve,

from astropy.io import fits
import irispreppy as ip

raw=fits.open("iris_raster.fits") #Raw data
rc=ip.radiometric_calibrate(raw)  #Radiometrically calibrated
rc_d=ip.deconvolve(rc)            #Radiometrically calibrated and deconvolved

To calibrate and deconvolve, and save,

from astropy.io import fits
import irispreppy as ip

raw=fits.open("iris_raster.fits")   #Raw data
ip.calibrate_and_save(raw)          #Radiometrically calibrated
rc=fits.open("iris_raster_rc.fits") #Radiometrically calibrated data
ip.deconvolve_and_save(rc)	        #Radiometrically calibrated and deconvolved

Documentation

Documentation for irispreppy can now be found here.


Acknowledgements

Thank you to Dr Graham S. Kerr for IRIS_SG_deconvolve.py and IRIS_SG_PSFs.pkl.

Special thanks to Dr C.M.J. Osborne for putting up with my incessant and innane questions.

Makes use of the excellent WENO4 algorithm (Janett et al. 2019) implemented in Python3 by Dr C.M.J. Osborne here.

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

irispreppy-3.1.3.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irispreppy-3.1.3-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file irispreppy-3.1.3.tar.gz.

File metadata

  • Download URL: irispreppy-3.1.3.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for irispreppy-3.1.3.tar.gz
Algorithm Hash digest
SHA256 8968e02d4ebfb27f13d60299790eb67aa1b90bf3996c98f53d597ffc2f5b0e89
MD5 f370cb23058a76aca7e4bdf2d54cd37e
BLAKE2b-256 e12c2e0f7106aef682d806eed5719a1704df44701fe58f11ffe57e4b7a8acf41

See more details on using hashes here.

File details

Details for the file irispreppy-3.1.3-py3-none-any.whl.

File metadata

  • Download URL: irispreppy-3.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for irispreppy-3.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1347e6d98bd2d09b9464e69e692553a94b8c83c6d7d1f76e28ec2d200e20931
MD5 68d189d8c40d941713cebb78e6576962
BLAKE2b-256 21dbd3670b87783526441bf8947b748f0f25886e36c1ed326a29865da5b4ded5

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