From d6cb7d0636c94612c667d6555001ec50dd81ea4f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 18 Jan 2016 13:38:57 +0800 Subject: Update marx/randpoints.py --- astro/marx/randpoints.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'astro') 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() -- cgit v1.2.2