Changeset 37807 for trunk/Ohana/src/opihi/dvo/simage.c
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/dvo/simage.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/dvo/simage.c
r36489 r37807 42 42 } 43 43 /* get astrometry information */ 44 strcpy (coords.ctype, "NONE"); 45 gfits_scan (&header, "CTYPE2", "%s", 1, coords.ctype); 46 if (strcmp (coords.ctype, "DEC--PLY")) { 47 gprint (GP_ERR, "ERROR: wrong astrometric info in header\n"); 44 if (!GetCoords (&coords, &header)) { 45 gprint (GP_ERR, "ERROR: can't get coord info from header\n"); 48 46 return (FALSE); 49 47 } 50 gfits_scan (&header, "CDELT1", "%f", 1, &coords.cdelt1);51 gfits_scan (&header, "CDELT2", "%f", 1, &coords.cdelt2);52 gfits_scan (&header, "CRVAL1", "%lf", 1, &coords.crval1);53 gfits_scan (&header, "CRVAL2", "%lf", 1, &coords.crval2);54 gfits_scan (&header, "CRPIX1", "%f", 1, &coords.crpix1);55 gfits_scan (&header, "CRPIX2", "%f", 1, &coords.crpix2);56 gfits_scan (&header, "PC001001", "%f", 1, &coords.pc1_1);57 gfits_scan (&header, "PC001002", "%f", 1, &coords.pc1_2);58 gfits_scan (&header, "PC002001", "%f", 1, &coords.pc2_1);59 gfits_scan (&header, "PC002002", "%f", 1, &coords.pc2_2);60 /* RA Terms */61 gfits_scan (&header, "PCA1X2Y0", "%f", 1, &coords.polyterms[0][0]);62 gfits_scan (&header, "PCA1X1Y1", "%f", 1, &coords.polyterms[1][0]);63 gfits_scan (&header, "PCA1X0Y2", "%f", 1, &coords.polyterms[2][0]);64 gfits_scan (&header, "PCA1X3Y0", "%f", 1, &coords.polyterms[3][0]);65 gfits_scan (&header, "PCA1X2Y1", "%f", 1, &coords.polyterms[4][0]);66 gfits_scan (&header, "PCA1X1Y2", "%f", 1, &coords.polyterms[5][0]);67 gfits_scan (&header, "PCA1X0Y3", "%f", 1, &coords.polyterms[6][0]);68 /* Dec Terms */69 gfits_scan (&header, "PCA2X2Y0", "%f", 1, &coords.polyterms[0][1]);70 gfits_scan (&header, "PCA2X1Y1", "%f", 1, &coords.polyterms[1][1]);71 gfits_scan (&header, "PCA2X0Y2", "%f", 1, &coords.polyterms[2][1]);72 gfits_scan (&header, "PCA2X3Y0", "%f", 1, &coords.polyterms[3][1]);73 gfits_scan (&header, "PCA2X2Y1", "%f", 1, &coords.polyterms[4][1]);74 gfits_scan (&header, "PCA2X1Y2", "%f", 1, &coords.polyterms[5][1]);75 gfits_scan (&header, "PCA2X0Y3", "%f", 1, &coords.polyterms[6][1]);76 coords.Npolyterms = 2; /* how many do we use? */77 48 78 49 /* find number of stars */
Note:
See TracChangeset
for help on using the changeset viewer.
