def __init__(self, **keyval): keys = { 'file': "", # fitsfile cube or map (or casa/miriad) 'basename': "", # override basename (useful for shorter names) 'pb': "", # PB cube or map 'usepb': True, # use PB, or was it just given for downstream 'mask': True, # define a mask where data==0.0 if no mask present 'box': [], # [] or z1,z2 or x1,y1,x2,y2 or x1,y1,z1,x2,y2,z2 'edge': [], # [] or zl,zr - number of edge channels 'smooth': [], # pixel smoothing size applied to data (can be slow) - see also Smooth_AT 'variflow': False, # requires manual sub-flow management for now 'vlsr': -999999.99, # force a VLSR (see also LineID) 'restfreq': -1.0, # alternate VLSRf specification # 'symlink' : False, # # 'autobox' : False, # automatically cut away spatial and spectral slices that are masked # 'cbeam' : 0.5, # channel beam variation allowed in terms of pixel size to use median beam } AT.__init__(self, keys, keyval) self._version = "1.1.5" self.set_bdp_in() # no input BDP self.set_bdp_out([ (SpwCube_BDP, 1), # one or two output BDPs (Image_BDP, 0), # optional PB if there was an pb= input ])
def __init__(self, **keyval): keys = { "basename" : "", # defaults to BDP derived } AT.__init__(self,keys,keyval) self._version = "1.0.0" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED)]) self.set_bdp_out([])
def __init__(self,**keyval): keys = {"file" : "", "touch": True, "exist": True} AT.__init__(self,keys,keyval) self._version = "1.0.0" self.set_bdp_in ([(File_BDP,1,bt.REQUIRED)]) self.set_bdp_out([(File_BDP,1)])
def __init__(self, **keyval): keys = { "basename": "", # defaults to BDP derived } AT.__init__(self, keys, keyval) self._version = "1.0.0" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED)]) self.set_bdp_out([])
def __init__(self,**keyval): keys = { } AT.__init__(self,keys,keyval) self._version = "0.0.1" self.set_bdp_in([(Image_BDP,1,bt.REQUIRED), (CubeStats_BDP,1,bt.OPTIONAL)]) self.set_bdp_out([])
def __init__(self, **keyval): keys = {"equalize" : False, # default to no equalization and no regridding "pad" : 5, # default to 5 channels on either side } AT.__init__(self, keys, keyval) self._version = "1.0.2" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED), (LineList_BDP, 1, bt.REQUIRED)]) self.set_bdp_out([(LineCube_BDP, 0)])
def __init__(self, **keyval): keys = { "equalize": False, # default to no equalization and no regridding "pad": 5, # default to 5 channels on either side } AT.__init__(self, keys, keyval) self._version = "1.0.2" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED), (LineList_BDP, 1, bt.REQUIRED)]) self.set_bdp_out([(LineCube_BDP, 0)])
def __init__(self,**keyval): keys = {"robust" : [], # signal rejection parameters "ppp" : False, # PeakPointPlot "maxvrms" : 2.0, # clip varying RMS (-1 to skip) "psample" : -1, # if > 0, spatial sampling rate for PeakStats } AT.__init__(self,keys,keyval) self._version = "1.0.6" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED)]) self.set_bdp_out([(CubeStats_BDP, 1)])
def __init__(self,**keyval): keys = {"file" : "", "m" : 0, "n" : 2, "touch" : False, "exist" : False} AT.__init__(self,keys,keyval) self._version = "1.0.0" self.set_bdp_in ([(File_BDP,self._keys.pop('m'),bt.REQUIRED)]) self.set_bdp_out([(File_BDP,1), (File_BDP,0)])
def __init__(self,**keyval): keys = {"numsigma" : 3.0, # N-sigma "range" : [], # optional channel range "nchan" : 0, # number of channels around the channel where the peak is } AT.__init__(self,keys,keyval) self._version = "1.0.1" self.set_bdp_in([(Image_BDP,1,bt.REQUIRED), # @todo optional 2nd PVSlice can be used to draw the template from (CubeStats_BDP,1,bt.REQUIRED)]) self.set_bdp_out([(PVCorr_BDP,1)])
def __init__(self, **keyval): keys = { "do_spatial_regrid": True, "pix_scale" : -1.0, "do_freq_regrid": False, "chan_width" : -1.0 } AT.__init__(self,keys,keyval) self._version = "1.0.0" self.set_bdp_in([(SpwCube_BDP,0,bt.REQUIRED)]) self.set_bdp_out([(SpwCube_BDP,0)])
def __init__(self, **keyval): keys = { "do_spatial_regrid": True, "pix_scale": -1.0, "do_freq_regrid": False, "chan_width": -1.0 } AT.__init__(self, keys, keyval) self._version = "1.0.0" self.set_bdp_in([(SpwCube_BDP, 0, bt.REQUIRED)]) self.set_bdp_out([(SpwCube_BDP, 0)])
def __init__(self,**keyval): keys = {"pos" : [], # one or more pairs of int's or ra/dec strings "sources" : [0], # select which sources from a SourceList "xaxis" : "", # currently still ignored } AT.__init__(self,keys,keyval) self._version = "1.0.3" self.set_bdp_in( [(Image_BDP, 1,bt.REQUIRED), # 0: cube: SpwCube or LineCube allowed (CubeStats_BDP, 1,bt.OPTIONAL), # 1: stats, uses maxpos (Moment_BDP, 1,bt.OPTIONAL), # 2: map, uses the max in this image as pos= (SourceList_BDP, 1,bt.OPTIONAL)]) # 3: source list, for positions self.set_bdp_out([(CubeSpectrum_BDP,1)])
def __init__(self, **keyval): keys = { "file": "", "n": 2, "subdir": False, "touch": False, "exist": False } AT.__init__(self, keys, keyval) self._version = "1.0.0" self.set_bdp_in([(File_BDP, 1, bt.REQUIRED)]) self.set_bdp_out([(File_BDP, 1), (File_BDP, 0)])
def __init__(self, **keyval): keys = { "bmaj" : {'value': -1.0, 'unit': 'arcsec'}, "bmin" : {'value': -1.0, 'unit': 'arcsec'}, "bpa" : -1.0, "velres" : {'value': -1.0, 'unit': 'pixel'}, } AT.__init__(self,keys,keyval) self._version = "1.0.5" self.set_bdp_in([(SpwCube_BDP,0,bt.REQUIRED)]) self.set_bdp_out([(SpwCube_BDP,0)])
def __init__(self, **keyval): keys = {"numsigma" : 6.0, # default to 5 sigma "sigma" : -1.0, # default to grab sigma from CubeStats BDP "region" : "", # default to entire map "robust" : ['hin',1.5], # default to classic MAD "snmax" : 35.0, # default to limit dynamic range to 100 } AT.__init__(self,keys,keyval) self._version = "1.0.5" self.set_bdp_in([(Image_BDP,2,bt.OPTIONAL), (CubeStats_BDP,1,bt.OPTIONAL)]) self.set_bdp_out([(SourceList_BDP, 1)])
def __init__(self, **keyval): # set the key words up with default values keys = {"yourname": "", "planet": ""} AT.__init__(self, keys, keyval) self._version = "1.0.0" # must call even if task takes no input bdp, so that # various internal AT values are set correctly self.set_bdp_in() self.set_bdp_out([(HelloWorld_BDP, 1)]) self._bdp_in_order_list = [] self._bdp_in_order_type = []
def __init__(self, **keyval): keys = { "numsigma" : 2.0, # default to 2.0*sigma cutoff "sigma" : -1.0, # default to CubeStats rms(freq) "linesum" : True, # Select line segments for from the (optional) LineList "pad" : 5, # number of channels to pad onto the line segments from LineList } AT.__init__(self,keys,keyval) self._version = "1.0.2" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED), (CubeStats_BDP, 1, bt.OPTIONAL), (LineList_BDP, 1, bt.OPTIONAL)]) # LineSegment_BDP also allowed self.set_bdp_out([(Moment_BDP,1)])
def __init__(self, **keyval): keys = { "contsub" : [], # see also Ingest_AT (although deprecated there now) "pad" : 5, # see also LineCube_AT "fitorder" : 0, # polynomial order } AT.__init__(self,keys,keyval) self._version = "1.0.2" self.set_bdp_in([(SpwCube_BDP, 1, bt.REQUIRED), # input spw cube (LineList_BDP, 1, bt.OPTIONAL), # will catch SegmentList as well ]) self.set_bdp_out([(SpwCube_BDP, 1), # output line cube (.lim) (Image_BDP, 1)], # output cont map (.cim) )
def __init__(self, **keyval): keys = { "chans" : [], # 0-based channel range, e.g. [5,10] "normalize" : False, "method" : ("", {"key1": 0, "key2": 1.0, "key3": "abc"}), "cmap" : "jet", } AT.__init__(self,keys,keyval) self._version = "1.0.1" self.set_bdp_in([(Image_BDP, 0, bt.REQUIRED)]) # 2 or more should be input # @TODO: Why is OverlapIntegral_BDP not used here, # since the output is a Table and an Image self.set_bdp_out([(Image_BDP,1)]) # 1 is output
def __init__(self,**keyval): # set the key words up with default values keys = {"yourname": "", "planet" : ""} AT.__init__(self,keys,keyval) self._version = "1.0.0" # must call even if task takes no input bdp, so that # various internal AT values are set correctly self.set_bdp_in() self.set_bdp_out([(HelloWorld_BDP,1)]) self._bdp_in_order_list = [] self._bdp_in_order_type = []
def __init__(self,**keyval): keys = {"slice" : [], # x0,y0,x1,y1 ? could be line= ? "slit" : [], # xc,yc,len,pa pick one of slice= or slit= "width" : 1, # odd integer! "clip" : 0.0, # clip value (in terms of sigma) "gamma" : 1.0, # gamma factor for analyzing map MOI "pvsmooth" : [], # P and V smoothing (in pixel) #"major" : True, # (TODO) major or minor axis, not used yet } AT.__init__(self,keys,keyval) self._version = "1.0.3" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED), # SpwCube (Moment_BDP, 1, bt.OPTIONAL), # Moment0 or CubeSum (CubeStats_BDP, 1, bt.OPTIONAL)]) # was: PeakPointPlot self.set_bdp_out([(PVSlice_BDP, 1)])
def __init__(self, **keyval): keys = { "numsigma": 3.0, # N-sigma "range": [], # optional channel range "nchan": 0, # number of channels around the channel where the peak is } AT.__init__(self, keys, keyval) self._version = "1.0.1" self.set_bdp_in([ (Image_BDP, 1, bt.REQUIRED), # @todo optional 2nd PVSlice can be used to draw the template from (CubeStats_BDP, 1, bt.REQUIRED) ]) self.set_bdp_out([(PVCorr_BDP, 1)])
def __init__(self, **keyval): keys = { "moments": [0], # default to moment 0 "numsigma": [2.0], # default to 2 sigma "sigma": -1.0, # default to determine sigma internally "chans": "", # default to select all channels "mom0clip": 0.0, # default to not clip "variflow": False, # default to manual sub-flow management } AT.__init__(self, keys, keyval) self._version = "1.0.3" # set input types self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED), (CubeStats_BDP, 1, bt.OPTIONAL)]) # set output types self.set_bdp_out([(Moment_BDP, 0)])
def __init__(self, **keyval): keys = { "numsigma": 2.0, # default to 2.0*sigma cutoff "sigma": -1.0, # default to CubeStats rms(freq) "linesum": True, # Select line segments for from the (optional) LineList "pad": 5, # number of channels to pad onto the line segments from LineList } AT.__init__(self, keys, keyval) self._version = "1.0.2" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED), (CubeStats_BDP, 1, bt.OPTIONAL), (LineList_BDP, 1, bt.OPTIONAL) ]) # LineSegment_BDP also allowed self.set_bdp_out([(Moment_BDP, 1)])
def __init__(self, **keyval): keys = {"numsigma" : 5.0, "minchan" : 4, "maxgap" : 3, "segment" : "ADMIT", "smooth" : [], "recalcnoise" : False, "csub" : [1, None], "iterate" : True, } self.boxcar = True AT.__init__(self, keys, keyval) self._version = "1.0.3" self.set_bdp_in([(CubeSpectrum_BDP, 1, bt.OPTIONAL), (CubeStats_BDP, 1, bt.OPTIONAL)]) self.set_bdp_out([(LineSegment_BDP, 1)])
def __init__(self, **keyval): keys = { "moments" : [0], # default to moment 0 "numsigma" : [2.0], # default to 2 sigma "sigma" : -1.0, # default to determine sigma internally "chans" : "", # default to select all channels "mom0clip" : 0.0, # default to not clip "variflow" : False, # default to manual sub-flow management } AT.__init__(self, keys, keyval) self._version = "1.0.3" # set input types self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED), (CubeStats_BDP, 1, bt.OPTIONAL)]) # set output types self.set_bdp_out([(Moment_BDP, 0)])
def __init__(self,**keyval): keys = {"file" : "", "nchan" : 1000, "nspectra" : 1, "seed" : 0, # -1 is special for no noise "contin" : 0.0, "freq" : 115.2712018, "delta" : 0.5, # channel width in MHz "lines" : [], # [(snr,freq0,fwhm),...] "transitions" : [], "hanning" : False, } AT.__init__(self,keys,keyval) self._version = "1.0.0" self.set_bdp_in([]) self.set_bdp_out([(CubeSpectrum_BDP,1)]) self.spec_description = [] # for summary()
def __init__(self, **keyval): keys = { "pos": [], # one or more pairs of int's or ra/dec strings "sources": [0], # select which sources from a SourceList "xaxis": "", # currently still ignored } AT.__init__(self, keys, keyval) self._version = "1.0.3" self.set_bdp_in([ (Image_BDP, 1, bt.REQUIRED), # 0: cube: SpwCube or LineCube allowed (CubeStats_BDP, 1, bt.OPTIONAL), # 1: stats, uses maxpos (Moment_BDP, 1, bt.OPTIONAL), # 2: map, uses the max in this image as pos= (SourceList_BDP, 1, bt.OPTIONAL) ]) # 3: source list, for positions self.set_bdp_out([(CubeSpectrum_BDP, 1)])
def __init__(self, **keyval): keys = { "file": "", "nchan": 1000, "nspectra": 1, "seed": 0, # -1 is special for no noise "contin": 0.0, "freq": 115.2712018, "delta": 0.5, # channel width in MHz "lines": [], # [(snr,freq0,fwhm),...] "transitions": [], "hanning": False, } AT.__init__(self, keys, keyval) self._version = "1.0.0" self.set_bdp_in([]) self.set_bdp_out([(CubeSpectrum_BDP, 1)]) self.spec_description = [] # for summary()
def __init__(self, **keyval): keys = { "contsub": [], # list of tuples "pad": 5, # see also LineCube_AT "fitorder": 0, # polynomial order } AT.__init__(self, keys, keyval) self._version = "1.1.0" self.set_bdp_in([ (SpwCube_BDP, 1, bt.REQUIRED), # input spw cube (LineList_BDP, 1, bt.OPTIONAL), # will catch SegmentList as well ]) self.set_bdp_out( [ (SpwCube_BDP, 1), # output line cube (.lim) (Image_BDP, 1) ], # output cont map (.cim) )
def __init__(self, **keyval): keys = { "numsigma": 2.0, # default to 2.0*sigma cutoff "sigma": -1.0, # default to CubeStats rms(freq) "linesum": True, # Select line segments for from the (optional) LineList "pad": 5, # number of channels to pad onto the line segments from LineList "zoom": 1, # default map plot zoom ratio # "cont" : True, # force averaging to make it a continuum @todo } AT.__init__(self, keys, keyval) self._version = "1.1.0-issue34" self.set_bdp_in([(Image_BDP, 1, bt.REQUIRED), (CubeStats_BDP, 1, bt.OPTIONAL), (LineList_BDP, 1, bt.OPTIONAL) ]) # LineSegment_BDP also allowed self.set_bdp_out([(Moment_BDP, 1)])
def __init__(self, **keyval): keys = { "bmaj": { 'value': -1.0, 'unit': 'arcsec' }, "bmin": { 'value': -1.0, 'unit': 'arcsec' }, "bpa": -1.0, "velres": { 'value': -1.0, 'unit': 'pixel' }, } AT.__init__(self, keys, keyval) self._version = "1.0.5" self.set_bdp_in([(SpwCube_BDP, 0, bt.REQUIRED)]) self.set_bdp_out([(SpwCube_BDP, 0)])
def __init__(self,**keyval): keys = { 'file' : "", # fitsfile cube or map (or casa/miriad) 'basename': "", # override basename (useful for shorter names) 'pb' : "", # PB cube or map 'usepb' : True, # use PB, or was it just given for downstream 'mask' : True, # define a mask where data==0.0 if no mask present 'box' : [], # [] or z1,z2 or x1,y1,x2,y2 or x1,y1,z1,x2,y2,z2 'edge' : [], # [] or zl,zr - number of edge channels 'smooth' : [], # pixel smoothing size applied to data (can be slow) - see also Smooth_AT 'vlsr' : -999999.0, # force a VLSR (see also LineID) 'restfreq': -1.0, # alternate VLSRf specification # 'symlink' : False, # # 'autobox' : False, # automatically cut away spatial and spectral slices that are masked # 'cbeam' : 0.5, # channel beam variation allowed in terms of pixel size to use median beam } AT.__init__(self,keys,keyval) self._version = "1.0.8a" self.set_bdp_in() # no input BDP self.set_bdp_out([(SpwCube_BDP, 1), # one or two output BDPs (Image_BDP, 1), # optional PB if there was an input ])
def __init__(self, **keyval): keys = {"file": ""} AT.__init__(self, keys, keyval) self._version = "1.0.0" self.set_bdp_in() self.set_bdp_out([(BDP, 1)])
def __init__(self): AT.__init__(self)
def __init__(self, **keyval): keys = {"file": "", "exist": True, "touch": False} AT.__init__(self, keys, keyval) self._version = "1.0.0" self.set_bdp_in() self.set_bdp_out([(File_BDP, 1)])
def __init__(self): AT.__init__(self) self.valid_BDP = [] # the listing of valid input BDP types self.bdp_out_types = [] # the listing of output bdp types """
def __init__(self): AT.__init__(self)
def __init__(self): AT.__init__(self) self.valid_BDP = [] # the listing of valid input BDP types self.bdp_out_types = [] # the listing of output bdp types """