NRAO Home > CASA > CASA Toolkit Reference Manual
componentlist.setrefdir - Function

1.2.1 Set the reference direction


Description

The setrefdir function sets the reference direction of the specified components to a new value. The direction is defined by separately specifying the right ascension and the declination.

The right ascension is specified as a string or a real number

Ra can be in standard angle units ’deg’, ’rad’, or time formatted as such ’HH:MM:SS.sss’ eg., ’19:34:63.8’ or angle formatted as such ’+DDD.MM.SS.sss’ eg., ’127.23.12.37’.

Similarly the declination is specified as a string or a real number and the decunit can be any angular unit or ’angle’ or ’time’.

Arguments





Inputs

which

A vector of indices specifying the components to modify. A vector with indices between 0 and one less than the list length, inclusively

allowed:

int

Default:

1

ra

The RA of the new direction, A formatted string or a number

allowed:

any

Default:

dec

The declination of the new direction. A formatted string or a number

allowed:

any

Default:

log

Send a message to the logger

allowed:

bool

Default:

true

Returns
bool

Example

 
 
      cl.simulate(3)  
      cl.setrefdir(0, ’12:26:35.9’, ’-63.5.56’)  
      cl.setrefdir(1, ’12h26m35.9’, ’-63d5m56’)  
      cl.setrefdir(2, ’-173.35deg’, ’-1.10128rad’)  
      cl.rename(’testcls.cl’)  
      cl.close() # write to disk  
 

__________________________________________________________________


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