/lancel_ir

Primary LanguagePython

WISE photometry for AT2019aalc

Code to produce WISE difference photometry for AT2019aalc using the Timewise Subtraction Pipeline.

Prerequisites

You have to have a MongoDB running. For installation on Mac see this. timewise-sup will connect to the database on the default port 27017. You can change this by setting the environment variable TIMEWISE_SUP_MONGODB_PORT.

All data will be downloaded into into the timewise data directory which defaults to $HOME/. You can change this by setting the environment variable TIMEWISE_DATA.

Installation

1. Clone this repository:

git clone git@github.com:JannisNe/lancel_ir.git

2. Install the package

Recommended: installation via poetry:

cd lancel_ir
poetry install

On some platforms, fastavro does not play ball. Try running pip install --no-build-isolation fastavro==1.6.1 and then poetry install again.

Installation with pip:

pip install .

Usage

1. Customize the configuration file

The delivered configuration file lancel_ir/analysis.yml will download and build the WISE lightcurve, run the Bayesian Blocks analysis and produce and plot the baseline subtracted lightcurve. Make sure to change the path of the coordinates file to the right one depending on your system.

2. Download and analyse the data

timewise lancel_ir/analysis.yml -l INFO

3. Make some plots and run some numbers

python -m lancel_ir

4. Load the data externally

from lancel_ir import get_lightcurve
lightcurve = get_lightcurve()         # returns a pandas.DataFrame
print(lightcurve.columns)             # prints the available columns