angularSeparationOfTwoFields

Return to directory of Todd's CASA extensions

Computes the angular separation (in degrees) between 2 specified fields in a measurement set, using msmd.phasecenter and the Vincenty formula. See also angularSeparationOfFields and angularSeparationOfFieldsFromSource.

Usage:

angularSeparationOfTwoFields(vis, field1, field2, usemsmd='')
Inputs:
  • field1, field2: the field IDs (integers)
  • usemsmd: if specified, then use this existing instance of msmd rather than creating a new one

Example:

CASA <2>: au.angularSeparationOfTwoFields('uid___A002_Xac5575_X43ef.ms.split.cal',1,2)
{'type': 'direction', 'm1': {'value': -0.5020182545147964, 'unit': 'rad'}, 'm0': {'value': -0.9342156255641537, 'unit': 'rad'}, 'refer': 'ICRS'} {'type': 'direction', 'm1': {'value': -0.5740965419866287, 'unit': 'rad'}, 'm0': {'value': -0.939890563627013, 'unit': 'rad'}, 'refer': 'ICRS'}                                                                                                                        
  Out[2]: 4.1392008825455067    
-- ToddHunter - 2016-01-20
Topic revision: r3 - 2016-04-04, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback