1.286. ObservationContext

Full Name: herschel.ia.obs.ObservationContext
Type: Java Class - Java Class
Import: from herschel.ia.obs import ObservationContext
Category

Arrays and datasets

Description

An Observation Context is a container of Products applicable to a specific observation.

It provides associations to products which are specific to a single observation (e.g. Telemetry Product, and reduced data products) as well as associations to Products that are applicable to multiple observations (such as the calibration products).

Example

Example 1: Setting up an observation
obs = ObservationContext()
auxContext = MapContext()
productContext = MapContext()
print obs.initialized # 0 (false)
obs.id=1L
obs.odNumber=2L
obs.instrument="HIFI"
obs.modelName="0"
obs.startTime=FineTime(1L)
obs.endTime=FineTime(2L)
print obs.initialized # 1 (true)
obs.auxiliary = auxContext # OK
print obs.auxiliary 
# {description="Unknown", meta=[type, creator, creationDate, description, 
#  instrument, modelName, startDate, endDate, formatVersion], datasets=[],
#  history=None, refs=[]}
print obs.prepared # 0 (false)
obs.calibration = MapContext()
print obs.prepared # 1 (true)
obs.level['level0'] = productContext   # OK
print obs.level['level0']
# {description="Unknown", meta=[type, creator, creationDate, description,
#  instrument, modelName, startDate, endDate, formatVersion],
# datasets=[], history=None, refs=[]}
print obs.reduced # 0 (false)
obs.level['level1']=MapContext()
print obs.reduced # 1 (true)

API Summary

Jython Syntax

<obs>=ObservationContext()

API details

Property

ObservationContext obs [OUTPUT, MANDATORY, default=no default value]

Returns an empty ObservationContext

See also