Index: /trunk/psLib/src/astro/psCoord.c
===================================================================
--- /trunk/psLib/src/astro/psCoord.c	(revision 2198)
+++ /trunk/psLib/src/astro/psCoord.c	(revision 2199)
@@ -10,6 +10,6 @@
 *  @author George Gusciora, MHPCC
 *
-*  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-10-26 21:24:42 $
+*  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 21:57:42 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -152,5 +152,5 @@
 }
 
-psSphereTransform* psSphereTransformICRStoEcliptic(psTime time)
+psSphereTransform* psSphereTransformICRSToEcliptic(psTime time)
 {
     struct tm *tmTime = psTimeToTM(&time);
@@ -165,5 +165,5 @@
 }
 
-psSphereTransform* psSphereTransformEcliptictoICRS(psTime time)
+psSphereTransform* psSphereTransformEclipticToICRS(psTime time)
 {
     struct tm *tmTime = psTimeToTM(&time);
@@ -178,10 +178,10 @@
 }
 
-psSphereTransform* psSphereTransformICRStoGalatic(void)
+psSphereTransform* psSphereTransformICRSToGalatic(void)
 {
     return (psSphereTransformAlloc(62.6, 282.25, 33.0));
 }
 
-psSphereTransform* psSphereTransformGalatictoICRS(void)
+psSphereTransform* psSphereTransformGalaticToICRS(void)
 {
     return (psSphereTransformAlloc(-62.6, 33.0, 282.25));
Index: /trunk/psLib/src/astro/psCoord.h
===================================================================
--- /trunk/psLib/src/astro/psCoord.h	(revision 2198)
+++ /trunk/psLib/src/astro/psCoord.h	(revision 2199)
@@ -1,3 +1,2 @@
-
 /** @file  psCoord.h
 *
@@ -11,6 +10,6 @@
 *  @author George Gusciora, MHPCC
 *
-*  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-10-12 01:34:09 $
+*  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 21:57:42 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -215,5 +214,5 @@
  *  @return psSphereTransform*     transform for ICRS->Ecliptic coordinate systems
  */
-psSphereTransform* psSphereTransformICRStoEcliptic(
+psSphereTransform* psSphereTransformICRSToEcliptic(
     psTime time                        ///< the time for which the resulting transform will be valid
 );
@@ -224,5 +223,5 @@
  *  @return psSphereTransform*     transform for Ecliptic->ICRS coordinate systems
  */
-psSphereTransform* psSphereTransformEcliptictoICRS(
+psSphereTransform* psSphereTransformEclipticToICRS(
     psTime time                        ///< the time for which the resulting transform will be valid
 );
@@ -232,5 +231,5 @@
  *
  */
-psSphereTransform* psSphereTransformICRStoGalatic(void);
+psSphereTransform* psSphereTransformICRSToGalatic(void);
 
 /** Creates the appropriate transform for converting from Galatic to ICRS
@@ -238,5 +237,5 @@
  *
  */
-psSphereTransform* psSphereTransformGalatictoICRS(void);
+psSphereTransform* psSphereTransformGalaticToICRS(void);
 
 /** Projects a spherical coordinate to a linear coordinate system
Index: /trunk/psLib/src/astronomy/psCoord.c
===================================================================
--- /trunk/psLib/src/astronomy/psCoord.c	(revision 2198)
+++ /trunk/psLib/src/astronomy/psCoord.c	(revision 2199)
@@ -10,6 +10,6 @@
 *  @author George Gusciora, MHPCC
 *
-*  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-10-26 21:24:42 $
+*  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 21:57:42 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -152,5 +152,5 @@
 }
 
-psSphereTransform* psSphereTransformICRStoEcliptic(psTime time)
+psSphereTransform* psSphereTransformICRSToEcliptic(psTime time)
 {
     struct tm *tmTime = psTimeToTM(&time);
@@ -165,5 +165,5 @@
 }
 
-psSphereTransform* psSphereTransformEcliptictoICRS(psTime time)
+psSphereTransform* psSphereTransformEclipticToICRS(psTime time)
 {
     struct tm *tmTime = psTimeToTM(&time);
@@ -178,10 +178,10 @@
 }
 
-psSphereTransform* psSphereTransformICRStoGalatic(void)
+psSphereTransform* psSphereTransformICRSToGalatic(void)
 {
     return (psSphereTransformAlloc(62.6, 282.25, 33.0));
 }
 
-psSphereTransform* psSphereTransformGalatictoICRS(void)
+psSphereTransform* psSphereTransformGalaticToICRS(void)
 {
     return (psSphereTransformAlloc(-62.6, 33.0, 282.25));
Index: /trunk/psLib/src/astronomy/psCoord.h
===================================================================
--- /trunk/psLib/src/astronomy/psCoord.h	(revision 2198)
+++ /trunk/psLib/src/astronomy/psCoord.h	(revision 2199)
@@ -1,3 +1,2 @@
-
 /** @file  psCoord.h
 *
@@ -11,6 +10,6 @@
 *  @author George Gusciora, MHPCC
 *
-*  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-10-12 01:34:09 $
+*  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 21:57:42 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -215,5 +214,5 @@
  *  @return psSphereTransform*     transform for ICRS->Ecliptic coordinate systems
  */
-psSphereTransform* psSphereTransformICRStoEcliptic(
+psSphereTransform* psSphereTransformICRSToEcliptic(
     psTime time                        ///< the time for which the resulting transform will be valid
 );
@@ -224,5 +223,5 @@
  *  @return psSphereTransform*     transform for Ecliptic->ICRS coordinate systems
  */
-psSphereTransform* psSphereTransformEcliptictoICRS(
+psSphereTransform* psSphereTransformEclipticToICRS(
     psTime time                        ///< the time for which the resulting transform will be valid
 );
@@ -232,5 +231,5 @@
  *
  */
-psSphereTransform* psSphereTransformICRStoGalatic(void);
+psSphereTransform* psSphereTransformICRSToGalatic(void);
 
 /** Creates the appropriate transform for converting from Galatic to ICRS
@@ -238,5 +237,5 @@
  *
  */
-psSphereTransform* psSphereTransformGalatictoICRS(void);
+psSphereTransform* psSphereTransformGalaticToICRS(void);
 
 /** Projects a spherical coordinate to a linear coordinate system
Index: /trunk/psLib/test/astronomy/tst_psCoord.c
===================================================================
--- /trunk/psLib/test/astronomy/tst_psCoord.c	(revision 2198)
+++ /trunk/psLib/test/astronomy/tst_psCoord.c	(revision 2199)
@@ -6,6 +6,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-10-14 01:53:44 $
+*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-26 21:57:32 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -33,8 +33,8 @@
                               {test3, 0000, "psPlaneDistortApply()", 0, false},
                               {test4, 0000, "psPSphereTransformApply()", 0, false},
-                              {test5, 0000, "psSphereTransformICRStoEcliptic()", 0, false},
-                              {test6, 0000, "psSphereTransformEcliptictoICRS()", 0, false},
-                              {test7, 0000, "psSphereTransformICRStoGalatic()", 0, false},
-                              {test8, 0000, "psSphereTransformGalatictoICRS()", 0, false},
+                              {test5, 0000, "psSphereTransformICRSToEcliptic()", 0, false},
+                              {test6, 0000, "psSphereTransformEclipticToICRS()", 0, false},
+                              {test7, 0000, "psSphereTransformICRSToGalatic()", 0, false},
+                              {test8, 0000, "psSphereTransformGalaticToICRS()", 0, false},
                               {test20, 0000, "psProject()", 0, false},
                               {test21, 0000, "psDeProject()", 0, false},
@@ -76,10 +76,5 @@
               float y)
 {
-    if (y!= 0.0) {
-        return(atan(y/x));
-    } else {
-        return(0.5 * M_PI);
-    }
-    return (0.0);
+    return((float) atan2((double) x, (double) y));
 }
 
@@ -251,5 +246,5 @@
     double T = year / 100.0;
     double phi = -23.452294 + 0.013013 * T + 0.000001639 * T * T - 0.000000503 * T * T * T;
-    psSphereTransform *myST = psSphereTransformICRStoEcliptic(*now);
+    psSphereTransform *myST = psSphereTransformICRSToEcliptic(*now);
 
     if (FLT_EPSILON < fabs(sin(phi) - myST->sinPhi)) {
@@ -290,5 +285,5 @@
     double T = year / 100.0;
     double phi = +23.452294 - 0.013013 * T - 0.000001639 * T * T + 0.000000503 * T * T * T;
-    psSphereTransform *myST = psSphereTransformEcliptictoICRS(*now);
+    psSphereTransform *myST = psSphereTransformEclipticToICRS(*now);
 
     if (FLT_EPSILON < fabs(sin(phi) - myST->sinPhi)) {
@@ -326,5 +321,5 @@
     double Xo = 282.25;
     double xo = 33.0;
-    psSphereTransform *myST = psSphereTransformICRStoGalatic();
+    psSphereTransform *myST = psSphereTransformICRSToGalatic();
 
     if (FLT_EPSILON < fabs(sin(phi) - myST->sinPhi)) {
@@ -359,5 +354,5 @@
     double Xo = 33.0;
     double xo = 282.25;
-    psSphereTransform *myST = psSphereTransformGalatictoICRS();
+    psSphereTransform *myST = psSphereTransformGalaticToICRS();
 
     if (FLT_EPSILON < fabs(sin(phi) - myST->sinPhi)) {
