Skip to main content

No project description provided

Project description

pyaXeHelper

This package contains functions helping pyaXe. This works with:

- pyaxe version '0.1.dev29+gf57de55.d20200106'

- sextractor version 2.19.5 (2014-11-16)

Functions include:

- change_catalog_order() edits and removes column order in a sextractor catalog. This is required by pyaxe as discussed in [#5](https://github.com/spacetelescope/pyaxe/issues/5) and [#6](https://github.com/spacetelescope/pyaxe/issues/6).

- change_magiso2magwavelength() edits a column in a sextractor catalog from MAG_ISO to MAG_F[WAVELENGTH] (e.g., MAG_F1392 for F140W images). This is required by pyaxe as discussed in [#5](https://github.com/spacetelescope/pyaxe/issues/5) and [#6](https://github.com/spacetelescope/pyaxe/issues/6).

- write_catalog() saves a text file similar to a sextractor catalog given a pandas dataframe.

- read_catalog() returns pandas dataframe of information in a sextractor catalog.

- select_source() returns an object from a sextractor catalog which is the closest to a given RADEC.

- make_meta() takes a list of files (both grism and direct) and reads their headers. Necessary information (e.g., filepath, filter, and expstart) are extracted and recorded in a dictionary form. This also calls _make_pairs() to make a suggestion for grism-direct pairs by selecting the grism-direct images having the closest expstart.

- _make_pairs() is internally used by make_meta() to return a suggestion of grism-direct pairs.

- prepare_folders() helps preparing folders GRISM/ and DIRECT/. It takes the dictionary output from make_meta() with the grism-direct pair suggestion (i.e., only GID is the input for this function), and processes grism and direct files stated in the dictionary. Each file is copied to the corresponding location. GRISM.lis and DIRECT.lis are constructed at the end.

make_axelis() constructs an aXe.lis file. It takes GID (i.e., an output from make_meta) and utilizes grism-direct pair info.

Known issues:

- ?

v.1.1.0

- This version mainly implement helpers to reduce the amount of manual works required such as making grism-direct pairs, copying files to folders, and making .lis files.

- Implement: make_meta, _make_pairs, prepare_folders, make_axelis

v.1.0.0

- This version mainly implements helpers to construct a sextractor catalog to be complied with pyaxe requirements.

- Implement: change_catalog_order, change_magiso2magwavelength, write_catalog, read_catalog, select_source

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

pyaxehelper-1.1.0a0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

pyaxehelper-1.1.0a0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pyaxehelper-1.1.0a0.tar.gz.

File metadata

  • Download URL: pyaxehelper-1.1.0a0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for pyaxehelper-1.1.0a0.tar.gz
Algorithm Hash digest
SHA256 2c4a8927588a79a22cfc70febef3f87182d9d652d0f3622e662ccafee365f979
MD5 d237923758f6100591a82d01837bb344
BLAKE2b-256 0a4837159d594a958f21449a5f3ba0d9a3a95fcd98ff3ca34bf8a8a5f8864fd9

See more details on using hashes here.

File details

Details for the file pyaxehelper-1.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: pyaxehelper-1.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for pyaxehelper-1.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c064ccbc48666a60b0aba025a5437d50fee447fd58c97d28707f259aef613bb
MD5 84103293b68b8ee3924fbc6555d3b19f
BLAKE2b-256 188ed6c6fcd9522bcfc0c757fbb58386e62682b9ef94ea43191d47c4b54ea80f

See more details on using hashes here.

Supported by

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