Skip to main content

No project description provided

Project description

irispreppy

For radiometrically calibrating and PSF deconvolving IRIS data.

To install 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.

This remains untested on Mac. However, I expect it to work on UNIX-like OSes.


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("path/to/file.fits") #Raw data
rc=ip.radcal(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("path/to/file.fits")   #Raw data
ip.radcal(raw, save=True)            #Radiometrically calibrated
rc=fits.open("path/to/file_rc.fits") #Radiometrically calibrated data
ip.deconvolve(rc, save=True)	     #Radiometrically calibrated and deconvolved

More in depth documentation will be added in the future.


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-2.2.0.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-2.2.0-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for irispreppy-2.2.0.tar.gz
Algorithm Hash digest
SHA256 0add31634c67af0e4d48b26ca46d2f03776329fe0bc640cfb557c25b5bfcaa78
MD5 e2ad8d9bc5a8f9fd5f0f5a66ffcc9b6d
BLAKE2b-256 b66c25ce2ed23efea5d99c793d47c8c78e5eb2153261f8c4d69b22ccaeb418d4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for irispreppy-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20646e4d6a81cd5ce74e11c0439c5b09316d16b65de5815d89351a4aef7bf28c
MD5 7e1f0c51deeeed3b4e45589283a3b4b3
BLAKE2b-256 4bccf521e516c19d041867f7fdac8f7009816080f0a952e7193e30e2ffbb91e2

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