Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast3 mapmaker coordinates #565

Open
giuspugl opened this issue May 5, 2022 · 0 comments
Open

Toast3 mapmaker coordinates #565

giuspugl opened this issue May 5, 2022 · 0 comments

Comments

@giuspugl
Copy link
Contributor

giuspugl commented May 5, 2022

Assume I 've a map in Galactic coord. and want to output it in Ecliptic , I set the det pointing as it follows :

[operators.det_pointing]
    class = "toast.ops.pointing_detector.PointingDetectorSimple"
    API = 0
    boresight = "boresight_radec" # Observation shared key for boresight
    coord_in = "G" # The input boresight coordinate system ('C', 'E', 'G')
    coord_out = "E" # The output coordinate system ('C', 'E', 'G')

then an error raised:

Proc 1:   File "/global/cscratch1/sd/giuspugl/toast3_software/lib/python3.9/site-packages/toast/ops/operator.py", line 49, in exec
    self._exec(data, detectors=detectors, **kwargs)
Proc 1:   File "/global/cscratch1/sd/giuspugl/toast3_software/lib/python3.9/site-packages/toast/timing.py", line 87, in df
    return f(*args, **kwargs)
Proc 1:   File "/global/cscratch1/sd/giuspugl/toast3_software/lib/python3.9/site-packages/toast/ops/pointing_detector.py", line 119, in _exec
    coord_rot = qa.inv(qa.ecl2gal)
Proc 1:   File "/global/cscratch1/sd/giuspugl/toast3_software/lib/python3.9/site-packages/toast/qarray.py", line 46, in inv
    qin = ensure_buffer_f64(q)
Proc 1:   File "/global/cscratch1/sd/giuspugl/toast3_software/lib/python3.9/site-packages/toast/utils.py", line 482, in ensure_buffer_f64
    return np.ascontiguousarray(data, dtype=np.float64).flatten()
Proc 1: TypeError: float() argument must be a string or a number, not 'function' 

Viceversa if i have

[operators.det_pointing]
    class = "toast.ops.pointing_detector.PointingDetectorSimple"
    API = 0
    boresight = "boresight_radec" # Observation shared key for boresight
    coord_in = "E" # The input boresight coordinate system ('C', 'E', 'G')
    coord_out = "E" # The output coordinate system ('C', 'E', 'G')

the map is left w/ Galact. coord. see plot below
image
which shows a satellite scanning strategy that should clearly have the rings at the poles...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant