NRAO Home > CASA > CASA Task Reference Manual

0.1.89 predictcomp

Requires:

Synopsis
Make a component list for a known calibrator

Description

Writes a component list named clist to disk and returns a dict of ’clist’: clist, ’objname’: objname, ’standard’: standard, ’epoch’: epoch, ’freqs’: pl.array of frequencies, in GHz, ’antennalist’: a simdata type configuration file, ’amps’: pl.array of predicted visibility amplitudes, in Jy, ’savedfig’: False or, if made, the filename of a plot. or False on error.

Arguments





Inputs

objname

Object name

allowed:

string

Default:

standard

Flux density standard

allowed:

string

Default:

Butler-JPL-Horizons 2010

epoch

Epoch

allowed:

string

Default:

minfreq

Minimum frequency

allowed:

string

Default:

maxfreq

Maximum frequency

allowed:

string

Default:

nfreqs

Number of frequencies

allowed:

int

Default:

2

prefix

Prefix for the component list directory name.

allowed:

string

Default:

antennalist

Plot for this configuration

allowed:

string

Default:

showplot

Plot S vs —u— to the screen?

allowed:

bool

Default:

False

savefig

Save a plot of S vs —u— to this filename

allowed:

string

Default:

symb

A matplotlib plot symbol code

allowed:

string

Default:

.

include0amp

Force the amplitude axis to start at 0?

allowed:

bool

Default:

False

include0bl

Force the baseline axis to start at 0?

allowed:

bool

Default:

False

blunit

unit of the baseline axis

allowed:

string

Default:

showbl0flux

Print the zero baseline flux ?

allowed:

bool

Default:

False

Returns
record

Example

 
 
    Writes a component list to disk and returns a dict of  
    {’clist’: filename of the component list,  
     ’objname’: objname,  
     ’angdiam’: angular diameter in radians (if used in clist),  
     ’standard’: standard,  
     ’epoch’: epoch,  
     ’freqs’: pl.array of frequencies, in GHz,  
     ’antennalist’: pl.array of baseline lengths, in m,  
     ’amps’:  pl.array of predicted visibility amplitudes, in Jy,  
     ’savedfig’: False or, if made, the filename of a plot.}  
    or False on error.  
 
    objname: An object supported by standard.  
    standard: A standard for calculating flux densities, as in setjy.  
              Default: ’Butler-JPL-Horizons 2010’  
    epoch: The epoch to use for the calculations.   Irrelevant for  
           extrasolar standards. (Uses UTC)  
   Examples: ’2011-12-31/5:34:12’, ’2011-12-31-5:34:12’  
    minfreq: The minimum frequency to use.  
             Example: ’342.0GHz’  
    maxfreq: The maximum frequency to use.  
             Default: minfreq  
             Example: ’346.0GHz’  
             Example: ’’, anything <= 0, or None: use minfreq.  
    nfreqs:  The number of frequencies to use.  
             Default: 1 if minfreq == maxfreq,  
                      2 otherwise.  
    prefix: The component list will be saved to  
               prefix + ’spw0_<objname>_<minfreq><epoch>.cl’  
            Default: ’’  
    Example: "Bands3to7_"  
                     (which could produce ’Bands3to7_spw0_Uranus_100GHz55877d.cl’,  
      depending on the other parameters)  
    antennalist: ’Observe’ and plot the visibility amplitudes for this  
                 antenna configuration.  The file should be in a format usable  
                 by simdata.  The search path is:  
                     .:casa[’dirs’][’data’] + ’/alma/simmos/’  
             Default: ’’ (None, just make clist.)  
     Example: ’alma.cycle0.extended.cfg’  
 
    Subparameters of antennalist:  
    showplot: Whether or not to show a plot of S vs. |u| on screen.  
              Subparameter of antennalist.  
              Default: Necessarily False if antennalist is not specified.  
                       True otherwise.  
    savefig: Filename for saving a plot of S vs. |u|.  
             Subparameter of antennalist.  
             Default: False (necessarily if antennalist is not specified)  
             Examples: ’’           (do not save the plot)  
                       ’myplot.png’ (save to myplot.png)  
    symb: One of matplotlib’s codes for plot symbols: .:,o^v<>s+xDd234hH|_  
          Default: ’.’  
    include0amp: Force the amplitude axis to start at 0?  
                 Default: False  
    include0bl: Force the baseline axis to start at 0?  
                Default: False  
    blunit: unit of the baseline axis (’’ or ’klambda’)  
            Default:’’=use a unit in the data  
    showbl0flux: Print the zero baseline flux?  
                 Default: False  
 
 


More information about CASA may be found at the CASA web page

Copyright © 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search