GeneralHourglassPlot

class rubin_sim.maf.plots.GeneralHourglassPlot(tz='Chile/Continental', site='Cerro Pachon', solar_time=True, marked_ra=None)

Bases: BasePlotter

Make an hourglass plot

Parameters:
tzstr

The timezone to use

sitestr

The site name (sent to astropy.coordinates.EarthLocation.of_site)

solar_timebool

Use solar time as the x axis (instead of civil time)?

marked_radict

A dictionary of RA values (in deg) for which to label transit lines.

A general feature of the hourglass plot is that you can pass more
data (such as the metric values, calculated for the entire survey)
to the plotter than are actually included in the plot. The plotter
will pull out the select subset of data, defined by kwargs.

Methods Summary

__call__(metric_value, slicer, user_plot_dict)

Restructure the metric data to use, and build the figure.

Methods Documentation

__call__(metric_value, slicer, user_plot_dict, fignum=None)

Restructure the metric data to use, and build the figure.

Parameters:
metric_valuenumpy.ndarray

Metric values

slicerrubin_sim.maf.slicers.baseSlicer.BaseSlicer

must have “mjd” and “duration” slice points, in units of days and seconds, respectively.

user_plot_dictdict

Plotting parameters

fignumint

matplotlib figure number