blcTrcToLineSegments

Return to directory of Todd's CASA extensions

Convert a BLC and TRC points to 4 line segments (i.e. 5 pairs of x,y points).

Usage:

au.blcTrcToLineSegments(blc, trc)
Inputs:
  • blc: coordinates of one point as a list: [x,y]
  • trc: coordinates of another point as a list [x,y]
Returns:
  • a tuple of 5 x coordinates and 5 y coordinates

Example:

CASA <7>: au.blcTrcToLineSegments([100,100],[200,200])
  Out[7]: ([100, 200, 200, 100, 100], [100, 100, 200, 200, 100])

-- ToddHunter - 2016-01-26
Topic revision: r1 - 2016-01-26, 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