The attached script outputs Moon-centered HA for a LEO spacecraft. This is an angular parameter, so I would expect it to have a range of 0–360 or -180–180.
But the range from GMAT is odd: it looks like -360–360. Can you check the code and see if it's being modded to any particular range?
|Field||Original Value||New Value|
|Assignee||Joel Parker [ jjkparker ]||Linda Jun [ gmatloj ]|
|Assignee||Linda Jun [ gmatloj ]||Joel Parker [ jjkparker ]|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|