Commit 9fefb5a6 authored by Reza  ANSARI's avatar Reza ANSARI
Browse files

Protection pour assurer d'avoir 0<=RA<24 , Reza

parent b1f4993a
...@@ -668,6 +668,8 @@ double P4Coords::RAFromTimeTU(TimeStamp const & tu) ...@@ -668,6 +668,8 @@ double P4Coords::RAFromTimeTU(TimeStamp const & tu)
tsid=TUtoTSid(day, hour); tsid=TUtoTSid(day, hour);
double ra = HMStoH(tsid); // le ra si lobservatoire etait a Greenwich (longitude 0 deg) double ra = HMStoH(tsid); // le ra si lobservatoire etait a Greenwich (longitude 0 deg)
ra += getLon()/15.; ra += getLon()/15.;
if (ra>24.) ra-=24;
if (ra<0.) ra+=24;
return (ra); return (ra);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment