imager_finalize
Master Side of the recipe
-
class lofarpipe.recipes.master.imager_finalize.imager_finalize
The Imager_finalizer performs a number of steps needed for integrating the
msss_imager_pipeline in the LOFAR framework: It places the image on the
output location in the correcy image type (hdf5).
It also adds some meta data collected from the individual measurement sets
and the found data.
This recipe does not have positional commandline arguments
Recipe inputs
Parameters: |
- awimager_output_map – (FileField) Mapfile containing (host, path) pairs of created sky
images (FileField)
- fillrootimagegroup_exec – (ExecField) Full path to the fillRootImageGroup executable (ExecField)
- maxbaseline – (FloatField) Maximum length of the baseline used for the images (FloatField)
- minbaseline – (FloatField) Minimum length of the baseline used for the images (FloatField)
- output_image_mapfile – (FileField) mapfile containing (host, path) pairs with the final
output image (hdf5) location (FileField)
- placed_image_mapfile – (FileField) location of mapfile with proced and correctly placed, hdf5 images (FileField)
- processed_ms_dir – (StringField) Path to directory for processed measurment sets (StringField)
- raw_ms_per_image_map – (FileField) Mapfile containing (host, path) pairs of mapfiles used
to create image on that node (FileField)
- sourcelist_map – (FileField) mapfile containing (host, path) pairs to a list of sources
found in the image (FileField)
- target_mapfile – (FileField) Mapfile containing (host, path) pairs to the concatenated andcombined measurement set, the source for the actual sky image (FileField)
|
Recipe outputs (job.results[parameter])
Parameters: | placed_image_mapfile – (StringField) (StringField) |
-
go()
Steps:
- Load and validate the input datamaps
- Run the node parts of the recipe
- Validate node output and format the recipe output
Node Side of the recipe
-
class lofarpipe.recipes.nodes.imager_finalize.imager_finalize(job_id, host, port)
This script performs the folowing functions:
- Add the image info to the casa image:
addimg.addImagingInfo (imageName, msNames, sourcedbName, minbl, maxbl)
- Convert the image to hdf5 image format:
- Filling of the HDF5 root group
- Return the outputs
-
run(awimager_output, raw_ms_per_image, sourcelist, target, output_image, minbaseline, maxbaseline, processed_ms_dir, fillrootimagegroup_exec)
Parameters: |
- awimager_output – Path to the casa image produced by awimager
- raw_ms_per_image – The X (90) measurements set scheduled to
create the image
- sourcelist – list of sources found in the image
- target – <unused>
- minbaseline – Minimum baseline used for the image
- maxbaseline – largest/maximum baseline used for the image
- processed_ms_dir – The X (90) measurements set actually used to
create the image
- fillrootimagegroup_exec – Executable used to add image data to
the hdf5 image
|
Return type: | self.outputs[‘hdf5’] set to “succes” to signal node succes
|
Return type: | self.outputs[‘image’] path to the produced hdf5 image
|