TemplateTags

tom_observations.templatetags.observation_extras.observing_buttons(target)

Displays the observation buttons for all facilities available in the TOM.

tom_observations.templatetags.observation_extras.existing_observation_form(target)

Renders a form for adding an existing API-based observation to a Target.

tom_observations.templatetags.observation_extras.update_observation_id_form(obsr)

Renders a form for updating the observation ID for an ObservationRecord.

tom_observations.templatetags.observation_extras.observation_type_tabs(context)

Displays tabs in observation creation form representing each available observation type.

tom_observations.templatetags.observation_extras.facility_observation_form(target, facility, observation_type)

Displays a form for submitting an observation for a specific facility and observation type, e.g., imaging.

tom_observations.templatetags.observation_extras.observation_plan(target, facility, length=7, interval=60, airmass_limit=None)

Displays form and renders plot for visibility calculation. Using this templatetag to render a plot requires that the context of the parent view have values for start_time, end_time, and airmass.

tom_observations.templatetags.observation_extras.observation_list(context, target=None)

Displays a list of all observations in the TOM, limited to an individual target if specified.

tom_observations.templatetags.observation_extras.observingstrategy_run(target)

Renders the form for running an observing strategy.

tom_observations.templatetags.observation_extras.observingstrategy_from_record(obsr)

Renders a button that will pre-populate and observing strategy form with parameters from the specified ObservationRecord.

tom_observations.templatetags.observation_extras.observation_distribution(observations)

Displays a plot showing on a map the locations of all observations recorded in the TOM.

tom_observations.templatetags.observation_extras.facility_status()

Collect the facility status from the registered facilities and pass them to the facility_status.html partial template. See lco.py Facility implementation for example. :return: