I have some IDL code that I have been converting into Python, because the rest of my program is python. Anyways, I've been having issues with a couple lines of code:
neg = where(ra LT 0.0d0, Nneg)
if Nneg GT 0 then ra[neg] = ra[neg] + 2.0d*!DPI
Okay so this code is from a program that outputs the position of the sun in celestial coordinates. "ra" is "right ascension" (basically longitude for space), and in the context of the program, it is a variable defined previously.
Also, the !DPI, i'm assuming, is pi.
Anyways, I was having trouble with the "LT" and "GT", but I'm pretty sure those mean Less than and greater than. My issue is with the "Nneg". I'ts not a variable, so I have no idea what it does. Also, I have no idea how to interpret these lines. I don't know what it is trying to accomplish basically.
If you can help in any way that'd be great. thanks
1 reply to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









