pipeline.hif.cli.hif_checkproductsize
- hif_checkproductsize(vis=None, maxcubesize=None, maxcubelimit=None, maxproductsize=None, maximsize=None, calcsb=None, parallel=None) Results[source]
Check imaging product size.
Check interferometry imaging product size and try to mitigate to maximum allowed values. hif_checkproductsize implements a mitigation cascade computing the largest cube size and tries to reduce it below a given limit by adjusting the
nbins,hm_imsizeandhm_cellparameters. If this step succeeds, it also checks the overall imaging product size and if necessary reduces the number of fields to be imaged.Alternatively, if
maximsizeis set, the image product pixel count is mitigated by trying to adjusthm_cellparameter. If the pixel count is still greater thanmaximsizeathm_cellof 4ppb, then this value is kept and the image field is truncated around the phase center by forcinghm_imsizetomaximsize.Note that mitigation for image pixel count and for the product size currently are mutually exclusive, with maximsize taking precedence if set.
- Parameters:
vis --
The list of input MeasurementSets. Defaults to the list of MeasurementSets specified in hifa_importdata and hifv_importdata.
Examples:
'ngc5921.ms',['ngc5921a.ms', ngc5921b.ms', 'ngc5921c.ms']maxcubesize --
Maximum allowed cube size in gigabytes (mitigation goal)
Default:
-1- automatic from performance parametersmaxcubelimit --
Maximum allowed cube limit in gigabytes (mitigation failure limit)
Default:
-1- automatic from performance parametersmaxproductsize --
Maximum allowed product size in gigabytes (mitigation goal and failure limit)
Default:
-1- automatic from performance parametersmaximsize --
Maximum allowed image count size (mitigation goal and hard maximum). Parameter
maximsizemust be even and divisible by2, 3, 5, 7only. *Caution*maximsizeis disabled by default and cannot be set at the same time asmaxcubesize,maxcubelimitandmaxproductsize.Default:
-1- disables mitigation for this parametercalcsb -- Force (re-)calculation of sensitivities and beams
parallel --
Use the CASA imager parallelization when possible.
Options:
'automatic','true','false',True,FalseDefault:
'automatic'
- Returns:
The results object for the pipeline task is returned.
Examples
Basic call to check the product sizes using internal defaults
>>> hif_checkproductsize()
Typical ALMA call
>>> hif_checkproductsize(maxcubesize=40.0, maxcubelimit=60.0, maxproductsize=350.0)