You have found the GitHub Organization for the Open mulTiwavelength Transient Event Repository (or OTTER)!
Each repo is for a different part of the project tentatively structured as follows:
Name | Description |
---|---|
otter | The Python API for accessing the data in OTTER |
webotter | Code for development of the frontend website of otter |
otterdb | Code for managing the backend "database" of otter |
- Set the
OTTER_ROOT
environment variableexport OTTER_ROOT=/path/to/where/to/clone
- Clone the relevant repos:
git clone https://github.com/astro-otter/otter.git $OTTER_ROOT/otter git clone https://github.com/astro-otter/otterdb.git $OTTER_ROOT/otterdb
- Install the NASA ADS Python API by following the instructions at https://ads.readthedocs.io/en/latest/#getting-started
- Install otter, the API for this database. From
the root directory where you installed these repos:
cd $OTTER_ROOT/otter python -m pip install -e .
- Process the data to build the local "database" (although it is really just a directory).
Then, you can build the "database" by running the
following commands:
cd $OTTER_ROOT/otter/scripts/ python3 gen_summary_table.py --otterroot $OTTER_ROOT
- Easily access the data using the Otter code! In python:
import os
from otter import Otter
otter = Otter(os.path.join(os.environ['OTTER_ROOT'], 'otterdb', '.otter'))
res = otter.query(names='AT2018hyz')
print(res)