Code Monkey home page Code Monkey logo

acdc-hst's Introduction

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.

acdc-hst's People

Contributors

ignotur avatar jotaylor avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

acdc-hst's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.