SchemaConverter

class lsst.ts.scheduler.utils.SchemaConverter

Bases: object

Record how to convert an observation array to the standard opsim schema.

Methods Summary

obs2opsim(obs_array, filename)

Convert an array of observations into a pandas dataframe with Opsim schema and store it in a sqlite database.

opsim2obs(filename)

Convert an opsim schema dataframe into an observation array.

Methods Documentation

obs2opsim(obs_array: ndarray, filename: str) None

Convert an array of observations into a pandas dataframe with Opsim schema and store it in a sqlite database.

Parameters:
obs_arraynp.ndarray

Array of observations.

filenamestr

Name of the database file.

opsim2obs(filename: str) ndarray

Convert an opsim schema dataframe into an observation array.

Parameters:
filenamestr

Path to the observation database.