lsst.obs.lsst

The obs_lsst module defines LSST camera specific configuration.

Contributing

lsst.obs.lsst is developed at https://github.com/lsst/obs_lsst. You can find Jira issues for this module under the obs_lsst component.

Command Line Scripts

generateCamera.py

Generate a camera.yaml file for a camera by assembling descriptions of rafts, sensors, etc.

Because we have many similar cameras, the assembly uses a :-separated search path of directories to find desired information. The _first_ occurrence of a filename is used.

usage: generateCamera.py [-h] [--path PATH] [--verbose] outputFile

positional arguments

outputfile

Name of generated file

options

-h, --help

show this help message and exit

--path <path>

List of directories to search for components

--verbose

How chatty should I be?

rewrite_ts8_qe_files.py

Rewrite native FITS files from the test stand to a standard format

usage: rewrite_ts8_qe_files.py [-h] [--out_root OUT_ROOT]
                               [--valid_start VALID_START]
                               picklefile

positional arguments

picklefile

Pickle file to read.

options

-h, --help

show this help message and exit

--out_root <out_root>

Root directory to which to write outputs

--valid_start <valid_start>

ISO format date string stating the start of the validity range.

Python API reference

lsst.obs.lsst Package

Functions

readRawFitsHeader(fileName[, translator_class])

Read a FITS header from a raw file and fix it up as required.

Classes

Latiss([collection_prefix])

Gen3 Butler specialization for AuxTel LATISS data.

LsstCam([collection_prefix])

Gen3 Butler specialization for the LSST Main Camera.

LsstCamImSim([collection_prefix])

Gen3 Butler specialization for ImSim simulations.

LsstCamPhoSim([collection_prefix])

Gen3 Butler specialization for Phosim simulations.

LsstComCam([collection_prefix])

Gen3 Butler specialization for ComCam data.

LsstTS3([collection_prefix])

Gen3 Butler specialization for TS3 test stand data.

LsstTS8([collection_prefix])

Gen3 Butler specialization for raft test stand data.

LsstUCDCam([collection_prefix])

Gen3 Butler specialization for UCDCam test stand data.

PhotodiodeIngestConfig(*args, **kw)

Configuration class for PhotodiodeIngestTask.

PhotodiodeIngestTask(butler, instrument[, ...])

Task to ingest photodiode data into a butler repository.

RubinDimensionPacker(data_id, *, config[, ...])

A data ID packer that converts Rubin visit+detector and exposure+detector data IDs to integers.

Class Inheritance Diagram

digraph inheritance598b1db3bb { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "Config" [URL="../../../py-api/lsst.pex.config.Config.html#lsst.pex.config.Config",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for configuration (*config*) objects."]; "DimensionPacker" [URL="../../../py-api/lsst.daf.butler.DimensionPacker.html#lsst.daf.butler.DimensionPacker",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class for going from `DataCoordinate` to packed integer ID and back."]; "Instrument" [URL="../../../py-api/lsst.obs.base.Instrument.html#lsst.obs.base.Instrument",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Rubin-specified base for instrument-specific logic for the Gen3 Butler."]; "Instrument" -> "Instrument" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Instrument" [URL="../../../py-api/lsst.pipe.base.Instrument.html#lsst.pipe.base.Instrument",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for instrument-specific logic for the Gen3 Butler."]; "Latiss" [URL="../../../py-api/lsst.obs.lsst.Latiss.html#lsst.obs.lsst.Latiss",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Gen3 Butler specialization for AuxTel LATISS data."]; "LsstCam" -> "Latiss" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstCam" [URL="../../../py-api/lsst.obs.lsst.LsstCam.html#lsst.obs.lsst.LsstCam",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Gen3 Butler specialization for the LSST Main Camera."]; "Instrument" -> "LsstCam" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstCamImSim" [URL="../../../py-api/lsst.obs.lsst.LsstCamImSim.html#lsst.obs.lsst.LsstCamImSim",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Gen3 Butler specialization for ImSim simulations."]; "LsstCam" -> "LsstCamImSim" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstCamPhoSim" [URL="../../../py-api/lsst.obs.lsst.LsstCamPhoSim.html#lsst.obs.lsst.LsstCamPhoSim",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Gen3 Butler specialization for Phosim simulations."]; "LsstCam" -> "LsstCamPhoSim" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstComCam" [URL="../../../py-api/lsst.obs.lsst.LsstComCam.html#lsst.obs.lsst.LsstComCam",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Gen3 Butler specialization for ComCam data."]; "LsstCam" -> "LsstComCam" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstTS3" [URL="../../../py-api/lsst.obs.lsst.LsstTS3.html#lsst.obs.lsst.LsstTS3",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Gen3 Butler specialization for TS3 test stand data."]; "LsstCam" -> "LsstTS3" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstTS8" [URL="../../../py-api/lsst.obs.lsst.LsstTS8.html#lsst.obs.lsst.LsstTS8",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Gen3 Butler specialization for raft test stand data."]; "LsstCam" -> "LsstTS8" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstUCDCam" [URL="../../../py-api/lsst.obs.lsst.LsstUCDCam.html#lsst.obs.lsst.LsstUCDCam",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Gen3 Butler specialization for UCDCam test stand data."]; "LsstCam" -> "LsstUCDCam" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PhotodiodeIngestConfig" [URL="../../../py-api/lsst.obs.lsst.PhotodiodeIngestConfig.html#lsst.obs.lsst.PhotodiodeIngestConfig",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Configuration class for PhotodiodeIngestTask."]; "Config" -> "PhotodiodeIngestConfig" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PhotodiodeIngestTask" [URL="../../../py-api/lsst.obs.lsst.PhotodiodeIngestTask.html#lsst.obs.lsst.PhotodiodeIngestTask",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Task to ingest photodiode data into a butler repository."]; "Task" -> "PhotodiodeIngestTask" [arrowsize=0.5,style="setlinewidth(0.5)"]; "RubinDimensionPacker" [URL="../../../py-api/lsst.obs.lsst.RubinDimensionPacker.html#lsst.obs.lsst.RubinDimensionPacker",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A data ID packer that converts Rubin visit+detector and"]; "DimensionPacker" -> "RubinDimensionPacker" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Task" [URL="../../../py-api/lsst.pipe.base.Task.html#lsst.pipe.base.Task",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for data processing tasks."]; }

lsst.obs.lsst.testHelper Module

Classes

ObsLsstButlerTests([methodName])

Base class shared by all tests of the butler and mapper.

ObsLsstObsBaseOverrides()

Specialist butler tests for obs_lsst.

Class Inheritance Diagram

digraph inheritance6d22644984 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ButlerGetTests" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Tests of obs_* Butler get() functionality."]; "CameraTests" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Tests that the butler returns a useable Camera."]; "ObsLsstButlerTests" [URL="../../../py-api/lsst.obs.lsst.testHelper.ObsLsstButlerTests.html#lsst.obs.lsst.testHelper.ObsLsstButlerTests",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class shared by all tests of the butler and mapper."]; "TestCase" -> "ObsLsstButlerTests" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ObsLsstObsBaseOverrides" [URL="../../../py-api/lsst.obs.lsst.testHelper.ObsLsstObsBaseOverrides.html#lsst.obs.lsst.testHelper.ObsLsstObsBaseOverrides",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Specialist butler tests for obs_lsst."]; "ObsTests" -> "ObsLsstObsBaseOverrides" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ObsTests" [URL="../../../py-api/lsst.obs.base.tests.ObsTests.html#lsst.obs.base.tests.ObsTests",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Aggregator class for all of the obs_* test classes."]; "ButlerGetTests" -> "ObsTests" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CameraTests" -> "ObsTests" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [URL="../../../py-api/lsst.utils.tests.TestCase.html#lsst.utils.tests.TestCase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Subclass of unittest.TestCase that adds some custom assertions for"]; "TestCase" -> "TestCase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; }

lsst.obs.lsst.utils Module

Functions

readRawFile(fileName, detector[, dataId])

Read a raw file from fileName, assembling it nicely.

lsst.obs.lsst.translators Package

Classes

LatissTranslator(header[, filename])

Metadata translator for LSST LATISS data from AuxTel.

LsstCamImSimTranslator(header[, filename])

Metadata translation class for LSSTCam imSim headers

LsstCamPhoSimTranslator(header[, filename])

Metadata translator for LSSTCam PhoSim data.

LsstCamTranslator(header[, filename])

Metadata translation for the main LSST Camera.

LsstComCamTranslator(header[, filename])

Metadata translation for the LSST Commissioning Camera.

LsstTS3Translator(header[, filename])

Metadata translator for LSST BNL Test Stand 3 data.

LsstTS8Translator(header[, filename])

Metadata translator for LSST Test Stand 8 data.

LsstUCDCamTranslator(header[, filename])

Metadata translator for LSST UC Davis test camera data.

Class Inheritance Diagram

digraph inheritance600aaccbe6 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "FitsTranslator" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Metadata translator for FITS standard headers."]; "MetadataTranslator" -> "FitsTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LatissTranslator" [URL="../../../py-api/lsst.obs.lsst.translators.LatissTranslator.html#lsst.obs.lsst.translators.LatissTranslator",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metadata translator for LSST LATISS data from AuxTel."]; "LsstBaseTranslator" -> "LatissTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstBaseTranslator" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Translation methods useful for all LSST-style headers."]; "FitsTranslator" -> "LsstBaseTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstCamImSimTranslator" [URL="../../../py-api/lsst.obs.lsst.translators.LsstCamImSimTranslator.html#lsst.obs.lsst.translators.LsstCamImSimTranslator",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metadata translation class for LSSTCam imSim headers"]; "LsstSimTranslator" -> "LsstCamImSimTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstCamPhoSimTranslator" [URL="../../../py-api/lsst.obs.lsst.translators.LsstCamPhoSimTranslator.html#lsst.obs.lsst.translators.LsstCamPhoSimTranslator",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metadata translator for LSSTCam PhoSim data."]; "LsstSimTranslator" -> "LsstCamPhoSimTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstCamTranslator" [URL="../../../py-api/lsst.obs.lsst.translators.LsstCamTranslator.html#lsst.obs.lsst.translators.LsstCamTranslator",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metadata translation for the main LSST Camera."]; "LsstBaseTranslator" -> "LsstCamTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstComCamTranslator" [URL="../../../py-api/lsst.obs.lsst.translators.LsstComCamTranslator.html#lsst.obs.lsst.translators.LsstComCamTranslator",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metadata translation for the LSST Commissioning Camera."]; "LsstCamTranslator" -> "LsstComCamTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstSimTranslator" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Shared routines for LSST Simulated Data."]; "LsstBaseTranslator" -> "LsstSimTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstTS3Translator" [URL="../../../py-api/lsst.obs.lsst.translators.LsstTS3Translator.html#lsst.obs.lsst.translators.LsstTS3Translator",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metadata translator for LSST BNL Test Stand 3 data."]; "LsstBaseTranslator" -> "LsstTS3Translator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstTS8Translator" [URL="../../../py-api/lsst.obs.lsst.translators.LsstTS8Translator.html#lsst.obs.lsst.translators.LsstTS8Translator",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metadata translator for LSST Test Stand 8 data."]; "LsstBaseTranslator" -> "LsstTS8Translator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LsstUCDCamTranslator" [URL="../../../py-api/lsst.obs.lsst.translators.LsstUCDCamTranslator.html#lsst.obs.lsst.translators.LsstUCDCamTranslator",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Metadata translator for LSST UC Davis test camera data."]; "LsstBaseTranslator" -> "LsstUCDCamTranslator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MetadataTranslator" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Per-instrument metadata translation support."]; }