Skip to content

Commit

Permalink
Updated to delete DS9 region file if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DaftPict committed May 17, 2024
1 parent 2676628 commit 5db319d
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 21 deletions.
91 changes: 74 additions & 17 deletions notebooks/multi_mission/display_footprints/display_footprints.ipynb

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions notebooks/multi_mission/display_footprints/selectSIAF.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def getVertices(apertureSiaf):
xVertices = apertureSiaf.V2Ref
yVertices = apertureSiaf.V3Ref
if (apertureSiaf.observatory == 'HST' and apertureSiaf.AperShape == 'PICK'):
print('Unsupported shape ',apertureSiaf.AperShape)
print('Unsupported shape ', apertureSiaf.AperShape)
xVertices = None
yVertices = None

Expand All @@ -258,9 +258,6 @@ def computeStcsFootprint(apertureSiaf, skyRa, skyDec):
elif apertureSiaf.AperShape == 'CIRC':
radius = apertureSiaf.maj/3600.0
apertureSregion = 'CIRCLE ICRS {} {} {} '.format(skyRa, skyDec, radius)
#elif apertureSiaf.AperShape == 'PICK':
#radius = apertureSiaf.maj/3600.0
#apertureSregion = 'POLYGON ICRS {} {} {} '.format(skyRa, skyDec, radius)
else:
print('Unsupported shape {}').format(apertureSiaf.AperShape)

Expand Down

0 comments on commit 5db319d

Please sign in to comment.