Skip to main content
QUICK REVIEW

[Paper Review] Abstracting the storage and retrieval of image data at the LSST

Tim Jenness, James Bosch|arXiv (Cornell University)|Dec 19, 2018
Computational Physics and Python ApplicationsComputer Science4 references3 citations
TL;DR

The paper introduces the LSST Data Butler, a Python-based software abstraction layer that decouples data processing pipelines from low-level file formats and storage locations. By using configurable storage classes, formatters, and a schema-driven registry, the Butler enables seamless retrieval and storage of astronomical datasets—such as raw images and calibrations—using high-level metadata like filter, observation ID, or date, with no code changes required when switching formats like FITS to HDF5.

ABSTRACT

Writing generic data processing pipelines requires that the algorithmic code does not ever have to know about data formats of files, or the locations of those files. At LSST we have a software system known as "the Data Butler," that abstracts these details from the software developer. Scientists can specify the dataset they want in terms they understand, such as filter, observation identifier, date of observation, and instrument name, and the Butler translates that to one or more files which are read and returned to them as a single Python object. Conversely, once they have created a new dataset they can give it back to the Butler, with a label describing its new status, and the Butler can write it in whatever format it has been configured to use. All configuration is in YAML and supports standard defaults whilst allowing overrides.

Motivation & Objective

  • To decouple algorithmic data processing code from file system details and data serialization formats in the LSST data management pipeline.
  • To provide a uniform, high-level interface for scientists to request datasets using intuitive metadata (e.g., filter, observation ID, date) without knowing file paths or formats.
  • To support flexible data storage and caching strategies—such as in-memory caching or chained datastores—without modifying application code.
  • To enable provenance tracking and complex data relationships (e.g., coadds, calibrations) through a standardized data model and registry system.
  • To ensure extensibility and reusability beyond LSST by designing the system with generic, configuration-driven components and support for standard astronomical data models like ObsCore and CAOM-2.

Proposed method

  • The Butler employs a high-level Python API that maps user requests (e.g., 'get raw data for HSC, obsid=HSCA04090000') to physical files via a configuration-driven system.
  • It uses a three-component architecture: Schema (data model), Registry (metadata query layer), and Datastore (storage abstraction), with formatters handling serialization/deserialization to formats like FITS or HDF5.
  • StorageClasses in YAML configuration define how Python objects map to file formats, allowing format changes without code modification.
  • Predefined components (e.g., WCS) can be retrieved independently without loading the full dataset, improving performance.
  • The system supports multiple backends: POSIX file system, in-memory cache, and chained datastores for write-through or read-first strategies.
  • A separate package, astro_metadata_translator, extracts instrument-specific metadata (e.g., filter, observation time) from FITS headers using Astropy, enabling consistent data ingestion.

Experimental results

Research questions

  • RQ1How can data processing pipelines be insulated from low-level storage and serialization details in large-scale astronomical surveys?
  • RQ2What architectural pattern enables seamless switching between data formats (e.g., FITS to HDF5) without code changes?
  • RQ3How can provenance and data lineage be tracked across complex data relationships (e.g., coadds, calibrations) in a scalable and queryable way?
  • RQ4How can metadata from diverse astronomical instruments be uniformly translated and ingested into a unified data management system?
  • RQ5To what extent can a generic, configuration-driven data access layer be reused beyond the LSST project?

Key findings

  • The Butler successfully decouples data processing logic from file system and format concerns, allowing scientists to work with datasets using high-level metadata without knowledge of physical storage.
  • Changing data serialization formats (e.g., from FITS to HDF5) requires only a configuration update—no code changes are needed for the processing pipeline.
  • The system supports selective loading of dataset components (e.g., WCS) without reading the entire file, improving I/O efficiency.
  • The use of formatters and StorageClasses enables transparent support for multiple storage backends, including in-memory caching and chained datastores.
  • The astro_metadata_translator package enables consistent, instrument-agnostic metadata extraction from FITS headers using Astropy, with existing translators for DECam, CFHT MegaPrime, and Hyper-SuprimeCam.
  • The Butler is designed to be reusable beyond LSST, with a configuration-driven, extensible architecture that supports mapping to standard astronomical data models like ObsCore and CAOM-2.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.