| Full Name: | herschel.hifi.pipeline.generic.DoAverageTask |
| Alias: | doAvg |
| Type: | Java Task - |
| Import: | from herschel.hifi.pipeline.generic import DoAverageTask |
| Category: |
Takes the average over the group of datasets defined by type ("sds_type") and frequency group.
Note that for the proper execution of this module the CheckFreqGrid-task should be run beforehand so that the frequency groups are available (and added as meta data to the datasets). If these groups are not avaliable all the datasets for a given type are averaged. Most of the work is delegated to the task herschel.ia.toolbox.spectrum.AverageSpectrum. In particular, the
the different processing modes that define how flags and weights should be included in the processing can be set by the "variant" parameter;
the other attribute data (other data columns in the table datasets) are processed according to the rules defined for HIFI in the spectrum toolbox.
Note that this task requires the output to be assigned to a variable (in the form htp=doAvg(...)). The type of the output depends on the value set for return_single_ds.
| Example 1: In HIPE: | ||
|---|---|---|
|
||
| Jython Syntax |
|---|
|
|
| Properties |
|---|
HifiTimelineProduct htp [IN, MANDATORY, default=no default value] |
Object result [OUT, MANDATORY, default=no default value] |
PipelineConfiguration params [INPUT, OPTIONAL, default=no default value] |
Boolean ignore [INPUT, OPTIONAL, default=no default value] |
Object selection_meta [INPUT, OPTIONAL, default=no default value] |
Object selection [INPUT, OPTIONAL, default=no default value] |
Boolean preserveGroups [INPUT, OPTIONAL, default=no default value] |
String variant [INPUT, OPTIONAL, default="flux-weight".] |
Boolean return_single_ds [INPUT, OPTIONAL, default=True] |
Double loThrow_tolerance [INPUT, OPTIONAL, default=no default] |
HifiTimelineProduct htp [IN, MANDATORY, default=no default value]
|
|
|---|---|
|
The timeline product (observation) to be passed to the module. |
|
PipelineConfiguration params [INPUT, OPTIONAL, default=no default value]
|
|
|---|---|
|
Pipeline configuration parameters that can be passed to the task. |
|
Boolean ignore [INPUT, OPTIONAL, default=no default value]
|
|
|---|---|
|
Flag to indicate whether the execution of the module should be ignored. |
|
Boolean preserveGroups [INPUT, OPTIONAL, default=no default value]
|
|
|---|---|
|
Specifies that the groups should be preserved in the sense that datasets that are associated with different groups are not mixed. Note that the grouping is a concept defined on the level of the meta data of the datasets. This grouping is also used when cleaning up data (see doCleanUp for further information). In case some of the meta data needed to specify the grouping is missing the average is perfomed on a per dataset basis. |
|
String variant [INPUT, OPTIONAL, default="flux-weight".]
|
|
|---|---|
|
Specify the variant of processing mode you would like to run (including flags / weights / ...). Possible values are "flux" / "flux-wave" / "flux-wave-weight" / "flux-flag-wave" / "flux-weight-flag-wave"
|
|
Boolean return_single_ds [INPUT, OPTIONAL, default=True]
|
|
|---|---|
|
Return a single dataset with the average or, in case you have several groups to handle in the timeine product, the averages. Each line in the result will correspond to one of the groups. You can identify the groups from the bbtype, LO Frequency, rasterLineNum/rasterColumnNum, or scanLineNum. Note that, typically, this does not allow you to include comb datsets to be included in the average. Be aware that if you set this option to False the original timeline product will be overwritten. This is the default pipeline setting since you want to have a timeline product back. |
|
Double loThrow_tolerance [INPUT, OPTIONAL, default=no default]
|
|
|---|---|
|
The groups to be averaged are checked for having consistent LO throw values. These values are said to be consistent if the LO throw changes in the given group are smaller than a given tolerance. The tolerance is computed from the parameter specified here by multiplying the value with the average LO frequency. The value specified here is specified in units km/sec. |
|