pmaxfit

Module Contents

Classes

_pmaxfit

pmaxfit ---- Find maximum and do parabolic fit in the sky

Functions

static_var(varname, value)

Attributes

pmaxfit

pmaxfit.static_var(varname, value)[source]
class pmaxfit._pmaxfit[source]

pmaxfit —- Find maximum and do parabolic fit in the sky

PARAMETER SUMMARY imagename Name of the input image box Rectangular region(s) to select in direction plane. See “help par.box” for details. Default is to use the entire direction plane. eg “100, 120, 200, 220, 300, 300, 400, 400” to use two boxes.

OVERVIEW This application finds the pixel with the maximum value in the region, and then uses function findsources to generate a Componentlist with one component.

The method returns a dictionary with fours keys, ‘succeeded’, ‘timestamps’, ‘imagenames’ and ‘outputs’. The value of ‘outputs’ is a dictionary representing a component list reflecting the fit results over multiple channels. Both the ‘outputs’ dictionaries can be read into a component list tool (default tool is named cl) using the fromrecord() method for easier inspection using tool methods, eg

FITTING OVER MULTIPLE CHANNELS

For fitting over multiple channels, the result of the previous successful fit is used as the estimate for the next channel. The number of gaussians fit cannot be varied on a channel by channel basis. Thus the variation of source structure should be reasonably smooth in frequency to produce reliable fit results.

——— parameter descriptions ———————————————

imagefiles A list of the input images ncpu Number of cpu cores to use box Rectangular region(s) to select in direction plane. See “help par.box” for details. Default is to use the entire direction plane. width Half-width of fit grid RETURNS void

——— examples ———————————————————–

EXAMPLE:

Here is how one might fit two gaussians to multiple channels of a cube using the fit from the previous channel as the initial estimate for the next. It also illustrates how one can specify a region in the associated continuum image as the region to use as the fit for the channel.

begin{verbatim} default pmaxfit imagename = “co_cube.im” # specify region using region from continuum box = “100,120,200,200” pmaxfit()

_info_group_ = 'analysis'[source]
_info_desc_ = 'Find maximum and do parabolic fit in the sky'[source]
__schema[source]
__globals_()[source]
__to_string_(value)[source]
__validate_(doc, schema)[source]
__do_inp_output(param_prefix, description_str, formatting_chars)[source]
__imagefiles_dflt(glb)[source]
__imagefiles(glb)[source]
__ncpu_dflt(glb)[source]
__ncpu(glb)[source]
__box_dflt(glb)[source]
__box(glb)[source]
__width_dflt(glb)[source]
__width(glb)[source]
__imagefiles_inp()[source]
__ncpu_inp()[source]
__box_inp()[source]
__width_inp()[source]
set_global_defaults()[source]
inp()[source]
tget(file=None)[source]
__call__(imagefiles=None, ncpu=None, box=None, width=None)[source]
pmaxfit.pmaxfit[source]