Skip to content

New rotation#161

Merged
smaret merged 2 commits intolime-rt:masterfrom
allegroLeiden:new_rotation
Sep 2, 2016
Merged

New rotation#161
smaret merged 2 commits intolime-rt:masterfrom
allegroLeiden:new_rotation

Conversation

@allegroLeiden
Copy link
Copy Markdown
Contributor

This provides the necessary code to implement #63, which seems to have died of loneliness.

Note that I found my final prescription (comment of 9 Aug on the #63 thread) to be in error: the expression for incMat should have read

         ( c  0  s)
incMat = ( 0  1  0);
         (-s  0  c)

New image parameters incl, posang, azimuth have been added as an alternative way to rotate the model. The way to select these is a bit primitive: they are each given a default value of -999 and detected values of >-900 for both incl and azimuth will trigger use of these parameters rather than the older theta/phi angles.

The zero points and directions of these rotations have been defined according to Attila Juhasz's recommendations in the discussion of lime-rt#63.

I modified the model.c to exemplify the new angles instead of the old.

Finally, for convenience I added a (commented-out) line in the makefile with a debugging switch.
I also slightly amended the test to decide whether to use theta/phi or the new angles: now all three of the new values must be supplied in order for theta/phi to be set aside and the new angles used.
@allegroLeiden allegroLeiden added this to the Release 1.6 milestone Aug 31, 2016
@smaret smaret self-assigned this Sep 2, 2016
@smaret smaret merged commit 39e6d61 into lime-rt:master Sep 2, 2016
@smaret
Copy link
Copy Markdown
Contributor

smaret commented Sep 2, 2016

Looks good, thanks!

@allegroLeiden allegroLeiden deleted the new_rotation branch September 7, 2016 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants