Skip to main content

Hubble Advanced Spectral Products creation code

Project description

HASP

This repository contains the wrapper script that creates Hubble Advanced Spectral Products and Hubble Spectral Legacy Archive products.

The script will create coadded spectral products for each target in each visit (visit-level products) and each program (program-level products). When used with the -x option, it will create products for all exposures in the input directory, assuming they are all the same target (cross-program, or HSLA products).

Products include single grating products made from all exposures that use the same grating, and abutted products that stitch together the single grating products according to priorities and wavelength ranges set in the grating priorities table.

Installing the package will install the wrapper script: swrapper.

To run:

swrapper -i . -o products
    -i INDIR, --input_directory INDIR

        The name of the directory containing the individual exposures to
        be coadded

    -o OUTDIR, --output_directory OUTDIR

        The name of the directory that will contain the coadded spectral products

    -t THRESHOLD, --threshold THRESHOLD

        Threshold for flux-based filtering.  Optional, default value is -50

    -c, --clobber

        If set, overwrite existing products.  Optional, if this keyword is not set,
        products will not be overwritten.

    -s SNRMAX, --snrmax SNRMAX
        Maximum SNR per pixel for flux-based filtering.  Optional, default value is 20.0

    -k, --no_keyword_filtering
        Disable keyword-based filtering (except for STIS PRISM data, which is always filtered)

    -x, --cross_program
        Create cross-program (HSLA) products only

    -g GRATING_TABLE, --grating_table GRATING_TABLE
        Name of custom grating priority table.  If a custom grating priority table is not
        selected, the default priorities will be set by the tables in hasp/grating_priority.py.
        Users can use the hasp/grating_priority_table.json as a template for creating their own
        custom grating priority table.

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

hasp-1.2.5.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

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

hasp-1.2.5-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file hasp-1.2.5.tar.gz.

File metadata

  • Download URL: hasp-1.2.5.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hasp-1.2.5.tar.gz
Algorithm Hash digest
SHA256 a3e3e127d830e42bb2fa4ac3ac03391002d750b7c28ac10ebce004f2437532d7
MD5 2e67a3fae0663a447e24d2683826be3a
BLAKE2b-256 acf983908ceaf351ccfcba4f709a6b52735a6d694c008b2ff6b12178123f0b5c

See more details on using hashes here.

File details

Details for the file hasp-1.2.5-py3-none-any.whl.

File metadata

  • Download URL: hasp-1.2.5-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hasp-1.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 02590b846edbffff59c4399d3b0f5c5cd29061595c6a9ae7924168eb3d8ae3f4
MD5 7a19417c681cd076a5ba0d798c8bfab9
BLAKE2b-256 4546d51a353f89b83269505ea36b1a43989e9f30eca13075e5bd4d16ddf28bca

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