Chandra-MARX / marxs

Multi-Architecture-Raytrace-Xraymission-Simulator
http://marxs.readthedocs.io/en/latest/
GNU General Public License v3.0
6 stars 9 forks source link

Apply uncertainties in local coordinates #205

Open hamogu opened 5 years ago

hamogu commented 5 years ago

Sometimes it would be useful to apply uncertainties in local coordinates. An example is REDSOX where +x means something very different for the 3 multi-layer mirrors. Here, it would be more useful to to the misalignment in local coordinates, i.e. +x means "along the coordinates of the graded ML mirror". I think design.tolerances could provide a function or a decorator to rotate the translation bit (need to think about the rotation) of a misalignment into the local coordinates system first. Alternatively, Parallel objects could get a switch or a second set of uncertainties to decide at what point (before or after setting the pos3d) the uncertainty is applied.