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.
Metadata
Release files for hasp 1.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hasp-1.2.5.tar.gz | 23.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hasp-1.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.1 kB
Release files / hasp-1.2.5.tar.gz
| Download URL | hasp-1.2.5.tar.gz |
|---|---|
| Size | 23.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3e3e127d830e42bb2fa4ac3ac03391002d750b7c28ac10ebce004f2437532d7
|
|
BLAKE2b-256 checksum How to use checksums |
acf983908ceaf351ccfcba4f709a6b52735a6d694c008b2ff6b12178123f0b5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / hasp-1.2.5-py3-none-any.whl
| Download URL | hasp-1.2.5-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02590b846edbffff59c4399d3b0f5c5cd29061595c6a9ae7924168eb3d8ae3f4
|
|
BLAKE2b-256 checksum How to use checksums |
4546d51a353f89b83269505ea36b1a43989e9f30eca13075e5bd4d16ddf28bca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|