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.


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 futureTM.


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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for irispreppy-2.3.4.tar.gz
Algorithm Hash digest
SHA256 d48d3c7361b31f99a9790cdcbee31d69695625364c2d820276c169fb4eb96721
MD5 6bfc94d775668cfe9cc607ee5ac9c10e
BLAKE2b-256 f2a39360418c35b7cacfb90aca2aa3280cef05536877211a210ef5e5fa32dc13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: irispreppy-2.3.4-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.12.9

File hashes

Hashes for irispreppy-2.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 79522d157fa2ccc3b83a69e124400e60d197898e01668b01dcc461150a18c781
MD5 6e415a8d8be961e287e3d92810ada09a
BLAKE2b-256 4aec55ff3d8362c4de0be8050c1441146222c4e1575302f87aee3186fa8aac87

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