def sdutil.__to_quantity_string | ( | v, | |
unit = 'arcsec' |
|||
) | [private] |
Definition at line 828 of file sdutil.py.
Referenced by get_cellx_celly().
def sdutil.assert_infile_exists | ( | infile = None | ) |
Definition at line 280 of file sdutil.py.
References get_abspath().
Referenced by sdutil.sdtask_template.initialize().
def sdutil.assert_outfile_canoverwrite_or_nonexistent | ( | outfile = None , |
|
outform = None , |
|||
overwrite = None |
|||
) |
Definition at line 298 of file sdutil.py.
References get_abspath().
Referenced by task_sdimaging.sdimaging_worker.parameter_check(), and save().
def sdutil.cleanup | ( | self | ) |
def sdutil.doaverage | ( | s, | |
scanaverage, | |||
timeaverage, | |||
tweight, | |||
polaverage, | |||
pweight, | |||
averageall = False , |
|||
docopy = False |
|||
) |
Definition at line 599 of file sdutil.py.
Referenced by dochannelrange(), task_sdsmooth.sdsmooth_worker.execute(), task_sdcal.sdcal_worker.execute(), and task_sdplot.sdplot_worker.execute().
def sdutil.dochannelrange | ( | s, | |
channelrange | |||
) |
Definition at line 585 of file sdutil.py.
References doaverage().
Referenced by task_sdcal.sdcal_worker.execute().
def sdutil.doopacity | ( | s, | |
tau | |||
) |
Definition at line 578 of file sdutil.py.
Referenced by task_sdcal.sdcal_worker.execute().
def sdutil.expand_path | ( | filename | ) |
Definition at line 277 of file sdutil.py.
Referenced by get_abspath().
def sdutil.finalize | ( | self | ) |
def sdutil.finalize_interactive_mask | ( | obj | ) |
Definition at line 763 of file sdutil.py.
Referenced by interactive_mask().
def sdutil.get_abspath | ( | filename | ) |
Definition at line 274 of file sdutil.py.
References expand_path().
Referenced by task_sdfit.sdfit_worker.__store_fit(), assert_infile_exists(), assert_outfile_canoverwrite_or_nonexistent(), task_sdstat.sdstat_worker.save(), and save().
def sdutil.get_cellx_celly | ( | c, | |
unit = 'arcsec' |
|||
) |
Definition at line 790 of file sdutil.py.
References __to_quantity_string().
Referenced by task_sdplot.sdplot_worker.__get_grid_parameters().
def sdutil.get_default_outfile_name | ( | infile = None , |
|
outfile = None , |
|||
suffix = None |
|||
) |
def sdutil.get_interactive_mask | ( | obj, | |
purpose = None |
|||
) |
Definition at line 758 of file sdutil.py.
Referenced by task_sdfit.sdfit_worker._set_linelist_interact(), and interactive_mask().
def sdutil.get_listvalue | ( | value | ) |
Definition at line 306 of file sdutil.py.
References asap.utils._to_list(), and get_selector().
Referenced by get_selector().
def sdutil.get_map_center | ( | c, | |
frame = 'J2000' , |
|||
unit = 'rad' |
|||
) |
Definition at line 805 of file sdutil.py.
Referenced by task_sdplot.sdplot_worker.__get_grid_parameters().
def sdutil.get_nx_ny | ( | n | ) |
Definition at line 781 of file sdutil.py.
References asap.utils._to_list().
def sdutil.get_plotter | ( | plotlevel = 0 | ) |
Definition at line 770 of file sdutil.py.
Referenced by task_sdfit.sdfit_worker.__init_plot().
def sdutil.get_restfreq_in_Hz | ( | s_restfreq | ) |
Definition at line 328 of file sdutil.py.
Referenced by normalise_restfreq().
def sdutil.get_selector | ( | self | ) |
Definition at line 108 of file sdutil.py.
Referenced by get_listvalue().
def sdutil.get_selector | ( | in_scans = None , |
|
in_ifs = None , |
|||
in_pols = None , |
|||
in_field = None , |
|||
in_beams = None , |
|||
in_rows = None |
|||
) |
Definition at line 310 of file sdutil.py.
References get_listvalue().
def sdutil.get_subtable_name | ( | v | ) |
def sdutil.init_interactive_mask | ( | s, | |
masklist, | |||
invert = False |
|||
) |
Definition at line 751 of file sdutil.py.
Referenced by task_sdfit.sdfit_worker._set_linelist_interact(), and interactive_mask().
def sdutil.initialize_scan | ( | self | ) |
def sdutil.interactive_mask | ( | s, | |
masklist, | |||
invert = False , |
|||
purpose = None |
|||
) |
Definition at line 744 of file sdutil.py.
References finalize_interactive_mask(), get_interactive_mask(), and init_interactive_mask().
def sdutil.normalise_restfreq | ( | in_restfreq | ) |
def get_restfreq_in_Hz(s_restfreq): value = 0.0 unit = "" s = s_restfreq.replace(" ","")
for i in range(len(s))[::-1]: if s[i].isalpha(): unit = s[i] + unit else: value = float(s[0:i+1]) break
if (unit == "") or (unit.lower() == "hz"): return value elif (len(unit) == 3) and (unit[1:3].lower() == "hz"): unitprefix = unit[0] factor = 1.0
if (unitprefix == "a"): factor = 1.0e-18 elif (unitprefix == "f"): factor = 1.0e-15 elif (unitprefix == "p"): factor = 1.0e-12 elif (unitprefix == "n"): factor = 1.0e-9 elif (unitprefix == "u"): factor = 1.0e-6 elif (unitprefix == "m"): factor = 1.0e-3 elif (unitprefix == "k"): factor = 1.0e+3 elif (unitprefix == "M"): factor = 1.0e+6 elif (unitprefix == "G"): factor = 1.0e+9 elif (unitprefix == "T"): factor = 1.0e+12 elif (unitprefix == "P"): factor = 1.0e+15 elif (unitprefix == "E"): factor = 1.0e+18
return value*factor else: mesg = "wrong unit of restfreq." raise Exception, mesg
Definition at line 389 of file sdutil.py.
References get_restfreq_in_Hz().
Referenced by set_restfreq().
def sdutil.parameter_check | ( | self | ) |
def sdutil.plot_scantable | ( | s, | |
pltfile, | |||
plotlevel, | |||
comment = None |
|||
) |
Definition at line 656 of file sdutil.py.
Referenced by task_sdcal.sdcal_engine.epilogue(), task_sdsmooth.sdsmooth_engine.epilogue(), task_sdbaseline.epilogue(), and task_sdsmooth.sdsmooth_engine.prologue().
def sdutil.process_exception | ( | e | ) |
Definition at line 766 of file sdutil.py.
Referenced by task_sdbaseline.sdbaseline(), task_sdcal.sdcal(), task_sdcoadd.sdcoadd(), task_sdfit.sdfit(), task_sdflag.sdflag(), task_sdflagmanager.sdflagmanager(), task_sdgrid.sdgrid(), task_sdimaging.sdimaging(), task_sdimprocess.sdimprocess(), task_sdlist.sdlist(), task_sdmath.sdmath(), task_sdplot.sdplot(), task_sdreduce.sdreduce(), task_sdsave.sdsave(), task_sdscale.sdscale(), task_sdsmooth.sdsmooth(), task_sdstat.sdstat(), and task_sdtpimaging.sdtpimaging().
def sdutil.save | ( | self | ) |
def sdutil.save | ( | s, | |
outfile, | |||
outform, | |||
overwrite | |||
) |
Definition at line 560 of file sdutil.py.
References assert_outfile_canoverwrite_or_nonexistent(), get_abspath(), and save().
Referenced by task_sdflagmanager.domanage(), task_sdflagmanager.sdflagmanager_worker.execute(), task_sdscale.sdscale_worker.save(), task_sdsave.sdsave_worker.save(), task_sdsmooth.sdsmooth_worker.save(), task_sdcal.save(), task_sdbaseline.sdbaseline_worker.save(), task_sdcoadd.sdcoadd_worker.save(), task_sdreduce.save(), task_sdmath.sdmath_worker.save(), and task_sdflag.sdflag_worker.save().
def sdutil.scantable_restore_factory | ( | s, | |
infile, | |||
fluxunit, | |||
specunit, | |||
frame, | |||
doppler, | |||
restfreq = '' |
|||
) |
Definition at line 678 of file sdutil.py.
References asap.scantable.is_scantable().
def sdutil.set_doppler | ( | s, | |
doppler | |||
) |
Definition at line 441 of file sdutil.py.
Referenced by task_sdplot.sdplot_worker.plot_grid(), and set_to_scan().
def sdutil.set_fluxunit | ( | s, | |
fluxunit, | |||
telescopeparm, | |||
insitu = True |
|||
) |
Definition at line 457 of file sdutil.py.
Referenced by task_sdmath.sdmath_worker.execute(), task_sdplot.sdplot_worker.plot_grid(), and set_to_scan().
def sdutil.set_freqframe | ( | s, | |
frame | |||
) |
Definition at line 451 of file sdutil.py.
Referenced by task_sdplot.sdplot_worker.plot_grid(), and set_to_scan().
def sdutil.set_restfreq | ( | s, | |
restfreq | |||
) |
Definition at line 432 of file sdutil.py.
References normalise_restfreq().
def sdutil.set_spectral_unit | ( | s, | |
specunit | |||
) |
Definition at line 437 of file sdutil.py.
Referenced by task_sdplot.sdplot_worker.plot_grid(), and set_to_scan().
def sdutil.set_to_scan | ( | self | ) |
Definition at line 117 of file sdutil.py.
References set_doppler(), set_fluxunit(), set_freqframe(), and set_spectral_unit().
tuple sdutil.plotter |
tuple sdutil.qatl |