DC1 data generation has recently been hampered by an apparent difference in convention between how CatSim converts RA, Dec into coordinates on the LSST focal plane and how PhoSim makes the same conversion. Specifically, to maximize computational efficiency, we used CatSim to find a list of individual chips that were in the DC1 region on the sky after a series of random rotational dithers had been applied to the minion_1016 OpSim observing cadence. Because PhoSim and CatSim disagree on what a camera rotation of +90 degrees means, chips which CatSim declared to be inside the DC1 region were simulated by PhoSim outside of the DC1 region. Below, I will try to quantify the differences between how CatSim converts from RA, Dec to focal plane position and how PhoSim converts from RA, Dec to focal plane position. The two conversions adopt different sign conventions both in terms of the camera rotator angle and in how displacement to the East on the sky corresponds to displacement on the focal plane. I have not found a definitive document allowing me to declare which convention is "correct."
It may be useful to compare this discussion to the discussion here, where the handedness of the PhoSim WCS is shown to be opposite that of the WCS used by ImSim.
LSSTDESC/imSim#39
Some references
A confluence page describing the LSST focal plane
https://confluence.lsstcorp.org/display/LSWUG/Representation+of+a+Camera
The relevant diagram is here:
![confluence_image](https://user-images.githubusercontent.com/1682854/27653074-d1c751ba-5bf2-11e7-9f3c-a60649b075c0.png)
Official camera team diagrams of the focal plane can be found in DocuShare under LCA-13381. Here is a screenshot of one of the more salient diagrams
![camera_team_diagram](https://user-images.githubusercontent.com/1682854/27652998-8fa5023c-5bf2-11e7-864b-37b234550763.png)
I believe these diagrams are consistent with each other. Note that in both R:3,4 is in the +x direction from R:1,4 and R:1,4 is in the +y direction from R:1,0
A test
I generated a series of 12 InstanceCatalogs, each containing only one source. In the first 4 catalogs, I set rotSkyPos=0
and used CatSim's methods to place the object at the center of a specific raft. I then simulated the image corresponding to each catalog with PhoSim. Below, I present the chip that CatSim thought the object was on, the chip that PhoSim simulated the object on, the focal plane coordinates reported by CatSim, and the RA, Dec of the object. In all cases, the telescope is pointed at RA=33.93, Dec=-6.7
CatSim chip |
PhoSim chip |
Focal plane x (CatSim; mm) |
Focal plane y (CatSim; mm) |
RA |
Dec |
R:1,4 S:1,1 |
R:3,4 S:1,1 |
-127 |
254 |
34.64 |
-5.30 |
R:3,4 S:1,1 |
R:1,4 S:1,1 |
127 |
254 |
33.22 |
-5.30 |
R:1,0 S:1,1 |
R:3,0 S:1,1 |
-127 |
-254 |
34.64 |
-8.12 |
R:3,0 S:1,1 |
R:1,0 S:1,1 |
127 |
-254 |
33.22 |
-8.12 |
Things to note:
- The chips and focal plane coordinates reported by CatSim appear to be self-consistent (though this may be a tautology, as the CatSim methods that calculate focal plane coordinates and the CatSim methods that find chips were written, validated, and tested together)
- PhoSim appears to be reflected about the y-axis with respect to CatSim (though, again, that assumes that you trust the focal plane coordinates reported by CatSim). This corresponds to a disagreement over how displacement to the East on the sky corresponds to displacement in the x direction on the focal plane.
For the other 8 catalogs, I used the same 4 RA, Dec positions of the objects, but changed rotSkyPos
to see how the objects moved across the focal plane. Below I will report the value of rotSkyPos
, the original rotSkyPos==0
CatSim chip, the rotSkyPos!=0
CatSim chip, the original PhoSim chip, the rotSkyPos!=0
chip, and the focal plane coordinates reported by CatSim with rotSkyPos!=0
(again, in mm)
rotSkyPos |
CatSim rot==0 |
CatSim rot!=0 |
PhoSim rot==0 |
PhoSim rot!=0 |
Focal x |
Focal y |
45.0 |
R:1,4 S:1,1 |
R:0,3 S:1,1 |
R:3,4 S:1,1 |
R:4,3 S:1,0 |
-269 |
90 |
45.0 |
R:3,4 S:1,1 |
R:1,4 S:2,1 |
R:1,4 S:1,1 |
R:3,4 S:0,1 |
-90 |
270 |
45.0 |
R:1,0 S:1,1 |
R:3,0 S:0,1 |
R:3,0 S:1,1 |
R:1,0 S:2,1 |
90 |
-270 |
45.0 |
R:3,0 S:1,1 |
R:4,1 S:1,2 |
R:1,0 S:1,1 |
R:0,1 S:1,2 |
270 |
-90 |
90.0 |
R:1,4 S:1,1 |
R:0,1 S:1,1 |
R:3,4 S:1,1 |
R:4,1 S:1,1 |
-254 |
-127 |
90.0 |
R:3,4 S:1,1 |
R:0,3 S:1,1 |
R:1,4 S:1,1 |
R:4,3 S:1,1 |
-254 |
127 |
90.0 |
R:1,0 S:1,1 |
R:4,1 S:1,1 |
R:3,0 S:1,1 |
R:0,1 S:1,1 |
254 |
-127 |
90.0 |
R:3,0 S:1,1 |
R:4,3 S:1,1 |
R:1,0 S:1,1 |
R:0,3 S:1,1 |
254 |
127 |
Comparing to this image from the Confluence page referenced above
![confluence_image](https://user-images.githubusercontent.com/1682854/27653074-d1c751ba-5bf2-11e7-9f3c-a60649b075c0.png)
we see the following
- As
rotSkyPos
increases, the objects in CatSim rotate clockwise in the focal plane diagram
- As
rotSkyPos
increases, the objects as simulated in PhoSim rotate counter-clockwise in the focal plane diagram
The CatSim documentation for the meaning of rotSkyPos
can be found here
https://github.com/lsst/sims_utils/blob/master/python/lsst/sims/utils/ObservationMetaData.py#L74
It can be summarized
rotSkyPos |
North in focal plane |
East in focal plane |
0.0 |
+y |
-x |
90.0 |
-x |
-y |
180.0 |
-y |
+x |
-90.0 |
+x |
+y |
This is consistent with objects rotating clockwise in the focal plane as rotSkyPos
increases.