IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#593 closed defect (fixed)

psProject / psDeproject

Reported by: eugene Owned by: David.Robbins@…
Priority: high Milestone:
Component: astro Version: 0.8.0
Severity: minor Keywords:
Cc: robert.desonia@…

Description

psProject and psDeproject are inefficiently implemented, and can have
out-of-range errors. these functions calculate phi and theta via, eg, atan of a
polynomial combination of the input angles, then calculate their sines and
cosines. this is better done by writing the sines and cosines directly as
combinations of the arguments used to calculate the atan. I am attaching
example code which calculates the projections this way, but is not very PS-lib
compliant.

Attachments (2)

coords.c (1.9 KB ) - added by eugene 21 years ago.
example of psDeproject code without so many sines and cosines
coords2.c (1.9 KB ) - added by eugene 21 years ago.
example for psProject

Download all attachments as: .zip

Change History (10)

by eugene, 21 years ago

Attachment: coords.c added

example of psDeproject code without so many sines and cosines

by eugene, 21 years ago

Attachment: coords2.c added

example for psProject

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

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

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

blocked: 592

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

blocked: 592
dependson: 592

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

Cc: robert.desonia@… added

comment:5 by eugene, 21 years ago

There are also errors in the projection implementation: it turns out that the
values of phi are being returned in the wrong quadrant due to not using atan2 to
calculate phi in psDeproject. I needed to implement the sin/cos version of the
code to catch this. The new implementation is in cvs under tag eam_rel8_b0

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

Resolution: fixed
Status: newclosed

branch has been joined with cvs trunk

comment:7 by Paul Price, 20 years ago

Keywords: VERIFIED added

Bug has been resolved.... closing.

comment:8 by Paul Price, 20 years ago

Keywords: VERIFIED removed

Bugs have been fixed... closing.

Note: See TracTickets for help on using tickets.