Skip to main content

Software to perform an optimized FUV (Far Ultraviolet) dark correction to HST COS data (Hubble Space Telescope Cosmic Origins Spectrograph).

Project description

Another COS Dark Correction (ACDC) ⚡

Documentation Status

Another dark correction?

COS spectroscopic science in the extreme UV regime is limited by detector background noise. The COS pipeline, CalCOS performs a basic background subtraction, but for low signal-to-noise ratio (SNR) observations, a more nuanced approach is necessary to fully capitalize on COS's FUV capabilities. In order to achieve the maximum scientific value of the COS instrument, we have a designed a custom characterization and correction of the COS FUV dark rate, acdc.

With acdc, we can:

  • create and maintain databases needed to measure the dark rate as a function of time, HST position, PHA, solar activity, and more
  • create COS/FUV superdarks
  • use superdarks to perform custom dark corrections
  • analyze the efficacy of custom dark-corrected COS data

For full usage instructions, refer to the documentation on ReadTheDocs.

Installation

Create a conda environment

If you do not already have Conda installed, you need to download and install either Miniconda or Anaconda. Miniconda provides a bare minimum Conda environment. Anaconda provides a full Conda root environment along with many other tools, libraries, and utilities.

Create a conda enviornment to use acdc:

conda create -n <env_name> python=<version>
conda activate <env_name>
pip install .

where <env_name> is the name of the environment that will be created. You need at least python version 3.9, so fill in <version> with whatever version >=3.9 that you desire.

Install the latest stable version

The easiest way to install acdc is to use pip:

pip install acdc-hst

[!IMPORTANT]

The package name on PyPi and the name of this repo, acdc-hst, are different than the imported package name, acdc. That is, you import the package as import acdc.

Install the development version

First clone this repo. Then cd into the cloned repository and execute:

pip install .

Usage

For full usage instructions, refer to the documentation on ReadTheDocs.

Building the docs locally

To build the documentation locally, for testing, first clone this repository then navigate into the repo and follow these commands:

pip install ".[docs]"
cd docs/
make html

It will take a minute or two to build all the docs. Once finished, you can open the docs in your default web browser with the following command:

open _build/html/index.html 

From there you can click and navigate the webpage as if it were hosted online normally.

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

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

Source Distribution

acdc_hst-1.1.tar.gz (805.9 kB view details)

Uploaded Source

Built Distribution

acdc_hst-1.1-py3-none-any.whl (826.0 kB view details)

Uploaded Python 3

File details

Details for the file acdc_hst-1.1.tar.gz.

File metadata

  • Download URL: acdc_hst-1.1.tar.gz
  • Upload date:
  • Size: 805.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for acdc_hst-1.1.tar.gz
Algorithm Hash digest
SHA256 5c92039b38dfa7a6c22930839460167bdd6eb3682dd4008c9acde1fcbf921b09
MD5 57b54777e86132ccc0abef6d4d061540
BLAKE2b-256 9f88ce9c65e99f901b34462b0470bd0354cdab9c8c0125334d2109450a12fdb4

See more details on using hashes here.

File details

Details for the file acdc_hst-1.1-py3-none-any.whl.

File metadata

  • Download URL: acdc_hst-1.1-py3-none-any.whl
  • Upload date:
  • Size: 826.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for acdc_hst-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46fb108b97966bea4dff9ee00a7a039a8eea53f9f0582e516de9b72e6baf69d7
MD5 572d5f634a8c1d00137328ffbeb41cd1
BLAKE2b-256 558ca5140284ddde4feabe1bf38a4fbad2a429e798cd66676dbccff2abe44667

See more details on using hashes here.

Supported by

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