Skip to content

Commit

Permalink
S_REGION circle size should be RADIUS, not diameter (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
stscirij committed Jan 26, 2023
1 parent fda660b commit 8116d3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion costools/add_cos_s_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def add_s_region(input_file, dry_run):
cosutil.printContinuation('in extension {} header of file {}'.format(n_ext+1, input_file))
continue
diameter = 2.5 / 3600.0
s_region = 'CIRCLE ICRS {0:.8f} {1:.7f} {2:.8f}'.format(ra_aper, dec_aper, diameter)
radius = 0.5 * diameter
s_region = 'CIRCLE ICRS {0:.8f} {1:.7f} {2:.8f}'.format(ra_aper, dec_aper, radius)
if not dry_run:
try:
existing_s_region = exthdr['S_REGION']
Expand Down

0 comments on commit 8116d3b

Please sign in to comment.