almanac

almanac scrapes headers from raw image files and cross-matches those against the SDSS database to create a comprehensive summary of everything ever observed with an APOGEE instrument.

almanac example

Quick Start

# Install almanac
uv pip install git+https://github.com/sdss/almanac

# Query yesterday's observations
almanac --mjd -1 -vv

# Query with fiber mappings
almanac --mjd -1 --fibers --output results.h5

Table of Contents

API Documentation

Installation

At Utah

module load almanac

Anywhere else

uv add sdss-almanac

Basic Usage

Query today’s observations:

almanac

Query with details:

almanac -vv --mjd -1

Query with fiber mappings:

almanac --mjd 60000 --fibers

Save to file:

almanac --output results.h5 --mjd-start -7

Key Features

  • Cross-platform: Works at Utah and external installations

  • Flexible queries: Support for MJD and calendar date ranges

  • Fiber analysis: Complete fiber-to-target mapping analysis

  • Structured output: HDF5 files with organized data structure

  • Observatory support: Both Apache Point Observatory and Las Campanas Observatory

  • Database integration: Automatic cross-matching with SDSS database

  • Performance optimized: Parallel processing and efficient data handling

Observatory Coverage

  • Apache Point Observatory (APO): New Mexico, USA

  • Las Campanas Observatory (LCO): Chile

Survey Support

  • SDSS-IV: Plate-based observations with APOGEE-2

  • SDSS-V: Fiber positioner system (FPS) with updated APOGEE

Indices and Tables