Index: trunk/Ohana/src/addstar/src/GetFileMode.c
===================================================================
--- trunk/Ohana/src/addstar/src/GetFileMode.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/GetFileMode.c	(revision 36485)
@@ -12,5 +12,5 @@
   gfits_scan_alt (header, "SIMPLE", "%t", 1, &simple);
   int haveNaxis = gfits_scan (header, "NAXIS",  "%d", 1, &Naxis);
-  int haveCTYPE = gfits_scan (header, "CTYPE1", "%s", 1, ctype);
+  int haveCTYPE = gfits_scan (header, "CTYPE2", "%s", 1, ctype);
 
   gfits_scan_alt (header, "EXTEND", "%t", 1, &extend);
Index: trunk/Ohana/src/addstar/src/LoadDataPMM.c
===================================================================
--- trunk/Ohana/src/addstar/src/LoadDataPMM.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/LoadDataPMM.c	(revision 36485)
@@ -193,5 +193,5 @@
 
     // XXX for now, we define a totally fake coordinate system centered on the plate center
-    strcpy (image[0].coords.ctype, "RA---TAN");
+    strcpy (image[0].coords.ctype, "DEC--TAN");
     
     image[0].coords.crval1  = pmm_get_ra (RA);
Index: trunk/Ohana/src/addstar/src/ReadStarsSDSS.c
===================================================================
--- trunk/Ohana/src/addstar/src/ReadStarsSDSS.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/ReadStarsSDSS.c	(revision 36485)
@@ -201,5 +201,5 @@
     
     // XXX for now, we define a totally fake coordinate system centered on the first listed star
-    strcpy (images[N].coords.ctype, "RA---TAN");
+    strcpy (images[N].coords.ctype, "DEC--TAN");
     
     images[N].coords.crval1 = stars[0].average.R;
Index: trunk/Ohana/src/addstar/src/fakeimage.c
===================================================================
--- trunk/Ohana/src/addstar/src/fakeimage.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/fakeimage.c	(revision 36485)
@@ -34,5 +34,5 @@
 
   /* create a mosaic distortion structure */
-  strcpy (MOSAIC.ctype, "RA---DIS");
+  strcpy (MOSAIC.ctype, "DEC--DIS");
   MOSAIC.crval1 = FAKE_RA;
   MOSAIC.crval2 = FAKE_DEC;
@@ -86,5 +86,5 @@
     strcpy (image[i+1].name, name);
 
-    strcpy (image[i+1].coords.ctype, "RA---WRP");
+    strcpy (image[i+1].coords.ctype, "DEC--WRP");
     
     image[i+1].coords.crval1 = dX*pixscale;
Index: trunk/Ohana/src/addstar/src/find_matches.c
===================================================================
--- trunk/Ohana/src/addstar/src/find_matches.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/find_matches.c	(revision 36485)
@@ -65,5 +65,5 @@
   tcoords.pc1_2 = tcoords.pc2_1 = 0.0;
   tcoords.Npolyterms = 1;
-  strcpy (tcoords.ctype, "RA---ARC");
+  strcpy (tcoords.ctype, "DEC--ARC");
 
   /* build spatial index (RA sort) referencing input array sequence */
Index: trunk/Ohana/src/addstar/src/find_matches_closest.c
===================================================================
--- trunk/Ohana/src/addstar/src/find_matches_closest.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/find_matches_closest.c	(revision 36485)
@@ -64,5 +64,5 @@
   tcoords.pc1_2 = tcoords.pc2_1 = 0.0;
   tcoords.Npolyterms = 1;
-  strcpy (tcoords.ctype, "RA---ARC");
+  strcpy (tcoords.ctype, "DEC--ARC");
 
   /* build spatial index (RA sort) referencing input array sequence */
Index: trunk/Ohana/src/addstar/src/find_matches_closest_refstars.c
===================================================================
--- trunk/Ohana/src/addstar/src/find_matches_closest_refstars.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/find_matches_closest_refstars.c	(revision 36485)
@@ -59,5 +59,5 @@
   tcoords.pc1_2 = tcoords.pc2_1 = 0.0;
   tcoords.Npolyterms = 0;
-  strcpy (tcoords.ctype, "RA---ARC");
+  strcpy (tcoords.ctype, "DEC--ARC");
   
   /* build spatial index (RA sort) referencing input array sequence */
Index: trunk/Ohana/src/addstar/src/find_matches_refstars.c
===================================================================
--- trunk/Ohana/src/addstar/src/find_matches_refstars.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/find_matches_refstars.c	(revision 36485)
@@ -57,5 +57,5 @@
   tcoords.pc1_1 = tcoords.pc2_2 = 1.0;
   tcoords.pc1_2 = tcoords.pc2_1 = 0.0;
-  strcpy (tcoords.ctype, "RA---ZEA");
+  strcpy (tcoords.ctype, "DEC--ZEA");
   tcoords.Npolyterms = 0;
   
Index: trunk/Ohana/src/addstar/src/loadsupercos_plates.c
===================================================================
--- trunk/Ohana/src/addstar/src/loadsupercos_plates.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/loadsupercos_plates.c	(revision 36485)
@@ -118,5 +118,5 @@
 
     // for now, we define a fake coordinate system based on the boresite center
-    strcpy (image[Nimage].coords.ctype, "RA---TAN");
+    strcpy (image[Nimage].coords.ctype, "DEC--TAN");
     
     image[Nimage].coords.crval1 = RAo;
Index: trunk/Ohana/src/addstar/src/sky_tessalation.c
===================================================================
--- trunk/Ohana/src/addstar/src/sky_tessalation.c	(revision 36484)
+++ trunk/Ohana/src/addstar/src/sky_tessalation.c	(revision 36485)
@@ -1106,5 +1106,5 @@
   refcoords[0].Npolyterms = 0;
   memset (refcoords[0].polyterms, 0, 14*sizeof(float));
-  strcpy (refcoords[0].ctype, "RA---TAN");
+  strcpy (refcoords[0].ctype, "DEC--TAN");
   return (TRUE);
 }
