Closed joesilber closed 4 years ago
please go ahead and fix this @joesilber . I had been lazy and added this zptl=None default as a short cut to produce some plots.
Ok great will do
Agreed with @julienguy. This is an oversight / shortcut; nothing subtle.
Closed in PR #59
When calling
ptl2fp
, with an argument ofzptl=None
, a dummy vector is generated forptlz
full of zeros: https://github.com/desihub/desimeter/blob/f3e2500d70e91ea72b180fb2ce5f6493ecc5b6d2/py/desimeter/transform/ptl2fp.py#L85-L88But this does not match the curved focal surface. I would have thought we need to instead:
r_ptl = np.hypot(xptl, yptl)
.z_ptl
using a function likeR2Z_lookup()
inposconstants.py
. (https://desi.lbl.gov/trac/browser/code/focalplane/plate_control/trunk/petal/posconstants.py#L66)Easy to add this r2z (and z2r) to the desimeter transforms package if desired.
I might not be understanding some subtlety of how the "ptl" coordinates are meant to be interpreted.