MoObjSlicer

class rubin_sim.maf.slicers.MoObjSlicer(h_range=None, verbose=True, badval=0)

Bases: BaseSlicer

Slice moving object _observations_, per object and optionally clone/per H value.

Iteration over the MoObjSlicer will go as: * iterate over each orbit; * if Hrange is not None, for each orbit, iterate over Hrange.

Parameters:
h_rangenumpy.ndarray or None

The H values to clone the orbital parameters over. If Hrange is None, will not clone orbits.

Methods Summary

read_obs(obs_file)

Read observations of the solar system objects (such as created by sims_movingObjects).

read_orbits(orbit_file[, delim, skiprows])

setup_slicer(orbit_file[, delim, skiprows, ...])

Set up the slicer and read orbit_file and obs_file from disk.

subset_obs([pandas_constraint])

Choose a subset of all the observations, such as those in a particular time period.

Methods Documentation

read_obs(obs_file)

Read observations of the solar system objects (such as created by sims_movingObjects).

Parameters:
obs_file: str

The file containing the observation information.

read_orbits(orbit_file, delim=None, skiprows=None)
setup_slicer(orbit_file, delim=None, skiprows=None, obs_file=None)

Set up the slicer and read orbit_file and obs_file from disk.

Sets self.orbits (with orbit parameters), self.all_obs, and self.obs self.orbit_file and self.obs_file

Parameters:
orbit_filestr

The file containing the orbit information. This is necessary, in order to be able to generate plots.

obs_filestr, optional

The file containing the observations of each object, optional. If not provided (default, None), then the slicer will not be able to ‘slice’, but can still plot.

subset_obs(pandas_constraint=None)

Choose a subset of all the observations, such as those in a particular time period.