From 1b3d4e5a6c4b5815386f1d62e01b35ea6ec83591 Mon Sep 17 00:00:00 2001 From: sutieng <30295725+sutieng@users.noreply.github.com> Date: Thu, 26 Sep 2019 15:50:55 +0100 Subject: [PATCH] update camera.py update the value of plate scale --- camera/camera.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/camera/camera.py b/camera/camera.py index 609db3d..f8767c4 100644 --- a/camera/camera.py +++ b/camera/camera.py @@ -1,8 +1,12 @@ import lsst.afw.cameraGeom.cameraConfig +#This simply asserts whether the config class is of the +#right format. +assert type(config)==lsst.afw.cameraGeom.cameraConfig.CameraConfig, 'config is of type %s.%s instead of lsst.afw.cameraGeom.cameraConfig.CameraConfig' % (type(config).__module__, type(config).__name__) + #Set the plate scale in arcsec/mm: #Not strictly necessary. -#config.plateScale=206.67 +config.plateScale=37.5 #This defines the native coordinate system: #FocalPlane is (x,y) in mm (rather than radians or pixels, for example).