IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 20 years ago

Last modified 20 years ago

#536 closed defect (fixed)

psTime and Julian dates

Reported by: Paul Price Owned by: David.Robbins@…
Priority: normal Milestone:
Component: astro Version: 0.7.0
Severity: normal Keywords:
Cc:

Description

psTimeToMJD does not check what time type is in use. The ADD specifies TAI.

Also affects:
psTimeToJD
psTimeFromMJD
psTimeFromJD

Change History (13)

comment:1 by robert.desonia@…, 21 years ago

Owner: changed from robert.desonia@… to David.Robbins@…

comment:2 by David.Robbins@…, 21 years ago

I'm not sure exactly what is desired here...
I assume you want a check on the TimeType and conversion if necessary for the
"To" functions that are listed.
As for the the "From" functions, I believe they already convert to TAI.

comment:3 by Paul Price, 21 years ago

Yes, psTimeToJD and psTimeToMJD should convert to TAI first if necessary.

I must have added the psTimeFrom* functions because I was looking at an old API.

comment:4 by David.Robbins@…, 21 years ago

Owner: changed from David.Robbins@… to robert.desonia@…

I'm really not sure this bug is valid. I've added a line before the returns in
ToMJD and ToJD to set the time type to TAI. Otherwise, the time type seems
completely irrelevant in these functions to me.

comment:5 by Paul Price, 21 years ago

Before a psTime can be converted to an MJD, it must first be converted to TAI.

comment:6 by David.Robbins@…, 21 years ago

actually, disregard my previous statement about changing the time type before
return. took that out.

comment:7 by robert.desonia@…, 21 years ago

Status: newassigned

comment:8 by David.Robbins@…, 21 years ago

Status: assignednew

comment:9 by robert.desonia@…, 20 years ago

Owner: changed from robert.desonia@… to gusciora@…

comment:10 by gusciora@…, 20 years ago

Owner: changed from gusciora@… to David.Robbins@…

comment:11 by David.Robbins@…, 20 years ago

Resolution: fixed
Status: newclosed

Ok, this one was a little harder than expected but i believe i've nailed it now.

Fixed the problem and stopped the seg faulting that was consequently occurring

from time conversions.

comment:12 by Paul Price, 20 years ago

Keywords: VERIFIED added

Bug has been resolved.... closing.

comment:13 by Paul Price, 20 years ago

Keywords: VERIFIED removed

Bugs have been fixed... closing.

Note: See TracTickets for help on using tickets.