diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-01-18 13:38:57 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-01-18 13:38:57 +0800 |
commit | d6cb7d0636c94612c667d6555001ec50dd81ea4f (patch) | |
tree | c2f0ed487b445fc6ec9f7d9dc8e7af97f239b9d2 | |
parent | 40d0ae7de95689c5a4b5288a832675b788523c90 (diff) | |
download | atoolbox-d6cb7d0636c94612c667d6555001ec50dd81ea4f.tar.bz2 |
Update marx/randpoints.py
-rwxr-xr-x | astro/marx/randpoints.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/astro/marx/randpoints.py b/astro/marx/randpoints.py index 1f7e64c..da0bedc 100755 --- a/astro/marx/randpoints.py +++ b/astro/marx/randpoints.py @@ -312,8 +312,11 @@ def main(): if args.outregion: reg_r = '3"' reg_header = ["# Region file format: DS9 version 4.1", "fk5"] - regions = ["circle(%.9f,%.9f,%s) # text={%.9g}" % (ra, dec, reg_r, f) - for ((ra, dec), f) in zip(coord, flux)] + regions = [ + "circle(%.9f,%.9f,%s) # text={%.9g}" % \ + (ra, dec, reg_r, f*factor) \ + for ((ra, dec), f) in zip(coord, flux) + ] regfile = open(args.outregion, "w") regfile.write("\n".join(reg_header + regions)) regfile.close() |