aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-18 13:38:57 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-18 13:38:57 +0800
commitd6cb7d0636c94612c667d6555001ec50dd81ea4f (patch)
treec2f0ed487b445fc6ec9f7d9dc8e7af97f239b9d2
parent40d0ae7de95689c5a4b5288a832675b788523c90 (diff)
downloadatoolbox-d6cb7d0636c94612c667d6555001ec50dd81ea4f.tar.bz2
Update marx/randpoints.py
-rwxr-xr-xastro/marx/randpoints.py7
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()