summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-12 18:05:31 -0400
committerStan Seibert <stan@mtrr.org>2011-08-12 18:05:31 -0400
commit3e02fe2a94366f2908006d41f7609f0e9555315b (patch)
tree9ff6761cef9aa8bc68aedb6684c8b20eb897b1dd
parent9cdaa78716037257d6cad20e961db045c303e640 (diff)
downloadchroma-3e02fe2a94366f2908006d41f7609f0e9555315b.tar.gz
chroma-3e02fe2a94366f2908006d41f7609f0e9555315b.tar.bz2
chroma-3e02fe2a94366f2908006d41f7609f0e9555315b.zip
Widen the field of view in camera to make it easier to look at Cherenkov rings from inside the detector.
-rwxr-xr-xcamera.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/camera.py b/camera.py
index 52a0add..d2d5d6c 100755
--- a/camera.py
+++ b/camera.py
@@ -36,7 +36,7 @@ def encode_movie(dir):
print 'movie saved to %s.' % filename
-def get_rays(position, size = (800, 600), width = 0.035, focal_length=0.05):
+def get_rays(position, size = (800, 600), width = 0.035, focal_length=0.018):
height = width*(size[1]/float(size[0]))
x = np.linspace(-width/2, width/2, size[0])
@@ -84,7 +84,7 @@ class Camera(Thread):
self.nblocks = 64
- self.point = np.array([0, self.scale*1.75, (lower_bound[2]+upper_bound[2])/2])
+ self.point = np.array([0, self.scale*1.0, (lower_bound[2]+upper_bound[2])/2])
self.axis1 = np.array([1,0,0], float)
self.axis2 = np.array([0,0,1], float)