ds9regionToList
Return to directory of Todd's CASA extensions
Converts markers in a DS9 region file to pairs of RA,Dec in degrees.
Useful as input to for aplpy's FITSFigure.show_markers().
Usage:
au.ds9regionToList(region)
- region: the name of the ds9 region file (ASCII format)
Example:
Contents of reg file:
fk5;point(18:08:55.53410,-20:05:57.6700) # point=cross color=blue font="helvetica 24 bold"
fk5;point(18:08:55.53860,-20:05:57.5960) # point=cross color=blue font="helvetica 24 bold"
fk5;point(18:08:49.33870,-20:05:59.0020) # point=cross color=blue font="helvetica 24 bold"
CASA <30>: au.ds9regionToList('G10.29_6.7_ICUT0.5_GAIN0.15_CPARM_6SIGMA.reg')
Out[30]:
[[272.23139208333339,
272.23141083333331,
272.20557791666664],
[-20.099352777777781,
-20.09933222222222,
-20.099722777777778]]
--
ToddHunter - 2013-11-27