Skip to content

Commit

Permalink
Add telescopeDiameter class variable
Browse files Browse the repository at this point in the history
Adding diameter to HscPupilFactory so it can be used
to find an initial guess for a good pupil scale.
  • Loading branch information
jmeyers314 committed May 18, 2017
1 parent 87e8cb6 commit 9162102
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/lsst/obs/hsc/hscPupil.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def __init__(self, visitInfo, pupilSize, npix):
self._spiderStartPos.append(np.dot(rot, pos))
self._spiderAngles.append(angle - hra)

telescopeDiameter = 8.2 # meters

def _horizonRotAngle(self):
"""!Compute rotation angle of camera with respect to horizontal
coordinates from self.visitInfo.
Expand Down Expand Up @@ -96,8 +98,7 @@ def getPupil(self, point):
@param point Point2D indicating focal plane coordinates.
@returns Pupil
"""
subaruDiam = 8.2 # meters
subaruRadius = subaruDiam/2
subaruRadius = self.telescopeDiameter/2

hscFrac = 0.231 # linear fraction
# radius of HSC camera shadow in meters
Expand Down

0 comments on commit 9162102

Please sign in to comment.