Skip to main content

No project description provided

Project description

KBAstroUtils

This is a collection of modules for analyses related to astrophysics by Dr. Kornpob Bhirombhakdi. Contact: kbhirombhakdi@stsci.edu

Tasks include:

- dqmask.py = handle data quality (DQ) arrays

- container.py = handle declaring attibutes given keys and values

- segmentation.py = wrapper for making a segmentation map (used to be source.py in version < 1.2.0)

- sub2full.py = mapping a subarray image back to its full frame

- gnd.py = wrapper, and main class for grism reduction

- grismconf.py = read conf file for grism reduction

- grismsens.py = read sens file for grism reduction

- grismapcorr.py = read aperture correction table, and calculate aperture correction factor

- grismmeta.py = construct meta info

- make_sip.py = calculate Simple Imaging Polynomial (SIP)

- photapcorr.py = read photometric calibration table, and prepare calibration factors (i.e., encircled energy correction, and photometric AB zeropoint)

- mag2flux.py = converting ABmag to flam

Known issues:

- ACS photometric zeropoints are set to 0.

- Memory

- No description/documentation

- Handling other telescopes

- flux2mag.py

- AB2Vega.py

- Vega2AB.py

- WFC3 subarray

Next

- Combine 1D spectra

- Use assertion for error handling (http://swcarpentry.github.io/python-novice-inflammation/09-defensive/index.html)

- HST-ACS-WFC flux calibration

v.2.5.0

- Implement grismmodel.py

- Implement GND.make_localbkg()

- Change GrismMeta.make_grismNdirect to GND.make_grismNdirect

- Change dqmask.py implementation

v.2.4.0

- Implement grismmeta.py

- HST-ACS-WFC is available for wavelength calibration, but not flux calibration

- HST-ACS-WFC subarray is applicable

- Change the construction of GrismCONF, and GrismSens

v.2.3.0

- GND.make_pairs(pairs=None) can automatically make pairs

- GND.make_xyd(xyd=None, init=init, inittype='radec') can automatically find a centroid given init

- GND.show(method='meta', output=True) returns the table instead of displaying it

- GND.make_drz() is deactivated

v.2.2.0

- GND.save takes filename

- Fix GND.show(method='flam') handling xmin, xmax

- GND.show(method='stamp') takes dqon

v.2.1.0

- Add functionalities in GND.show(method='clean', traceon=True, zoom=True)

- Implement: photapcorr.py, mag2flux.py

v.2.0.0

- New APIs: gnd.py

- Demo provided

- Implement: grismapcorr.py, make_sip.py

v.1.3.1

- Fix import

v.1.3.0

- Implement: grismconf.py, gnd.py, grismsens.py

v.1.2.0

- Implement: sub2full.py

- Change: source.py to segmentation.py

- Fix description: segmentation.py

v.1.1.0

- Implement: container.py, source.py

- Fix description: dqmask.py

v.1.0.2

- Fix description of dqmask.py

v.1.0.1

- Fix import modules in dqmask.py

v.1.0.0

- Implement dqmask.py

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kbastroutils-2.5.0rc0.tar.gz (247.2 kB view details)

Uploaded Source

Built Distribution

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

kbastroutils-2.5.0rc0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file kbastroutils-2.5.0rc0.tar.gz.

File metadata

  • Download URL: kbastroutils-2.5.0rc0.tar.gz
  • Upload date:
  • Size: 247.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for kbastroutils-2.5.0rc0.tar.gz
Algorithm Hash digest
SHA256 a2db2376a45dd51d4af56ca11e59eefd022384dd668f861162718ebe5164a5ba
MD5 633910c4dd245a2e603df9390f51e11e
BLAKE2b-256 5387994af4b19f227afe70a8f403ffe7cd280cccdc7bfd3ea34604a1900b1573

See more details on using hashes here.

File details

Details for the file kbastroutils-2.5.0rc0-py3-none-any.whl.

File metadata

  • Download URL: kbastroutils-2.5.0rc0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for kbastroutils-2.5.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 78dd81c66378a0ca82867d3a5c1a80f3e068487a6abab2749519b3a44e463b83
MD5 d4937e71e5dd15d2d45ce30afa957c8c
BLAKE2b-256 3c3161db7b58f3ef7cbbb6b7f50fad8febe9df005f0f40b32f37f4fa7f0d0acd

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