Changeset 36398 for branches/eam_branches/ipp-20131211/Ohana/src/opihi
- Timestamp:
- Dec 13, 2013, 10:31:05 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20131211/Ohana/src/opihi
- Files:
-
- 7 edited
-
cmd.astro/cdensify.c (modified) (3 diffs)
-
cmd.astro/fitplx.c (modified) (1 diff)
-
cmd.astro/region.c (modified) (1 diff)
-
dvo/find_matches.c (modified) (1 diff)
-
dvo/gimages.c (modified) (1 diff)
-
dvo/showtile.c (modified) (1 diff)
-
dvo/simage.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20131211/Ohana/src/opihi/cmd.astro/cdensify.c
r36387 r36398 76 76 Ny = (Ymax - Ymin) / dY + 1; 77 77 78 Coords newcoords = graphmode.coords; 79 newcoords.cdelt1 *= dX; 80 newcoords.cdelt2 *= dY; 81 newcoords.crpix1 = (newcoords.crpix1 - Xmin) / dX; 82 newcoords.crpix2 = (newcoords.crpix2 - Ymin) / dY; 83 78 84 gfits_free_matrix (&bf[0].matrix); 79 85 gfits_free_header (&bf[0].header); 80 86 CreateBuffer (bf, Nx, Ny, -32, 0.0, 1.0); 81 87 strcpy (bf[0].file, "(empty)"); 88 PutCoords (&newcoords, &bf[0].header); 82 89 83 90 float scalescale = scale*scale; … … 96 103 coords.pc1_2 = coords.pc2_1 = 0.0; 97 104 coords.Npolyterms = 0; 98 strcpy (coords.ctype, " RA---TAN");105 strcpy (coords.ctype, "DEC--TAN"); 99 106 100 107 r = vr[0].elements.Flt; … … 113 120 Xb = (x - Xmin) / dX; 114 121 Yb = (y - Ymin) / dY; 122 123 RD_to_XY (&x, &y, rn, *d, &newcoords); 124 Xb = (int) x; 125 Yb = (int) y; 115 126 if (Xb >= Nx) continue; 116 127 if (Yb >= Ny) continue; -
branches/eam_branches/ipp-20131211/Ohana/src/opihi/cmd.astro/fitplx.c
r36375 r36398 112 112 coords.pc1_2 = coords.pc2_1 = 0.0; 113 113 coords.Npolyterms = 1; 114 strcpy (coords.ctype, " RA---SIN");114 strcpy (coords.ctype, "DEC--SIN"); 115 115 116 116 double *X, *Y, *t, *pX, *pY, *dX, *dY; -
branches/eam_branches/ipp-20131211/Ohana/src/opihi/cmd.astro/region.c
r31160 r36398 80 80 if (!ohana_str_to_radec (&Ra, &Dec, argv[1], argv[2])) return (FALSE); 81 81 Radius = atof (argv[3]); 82 strcpy (graphmode.coords.ctype, " RA---TAN");82 strcpy (graphmode.coords.ctype, "DEC--TAN"); 83 83 if (argc == 5) { 84 84 if (!strcasecmp (argv[4], "TAN")) 85 strcpy (graphmode.coords.ctype, " RA---TAN");85 strcpy (graphmode.coords.ctype, "DEC--TAN"); 86 86 if (!strcasecmp (argv[4], "SIN")) 87 strcpy (graphmode.coords.ctype, " RA---SIN");87 strcpy (graphmode.coords.ctype, "DEC--SIN"); 88 88 if (!strcasecmp (argv[4], "ARC")) 89 strcpy (graphmode.coords.ctype, " RA---ARC");89 strcpy (graphmode.coords.ctype, "DEC--ARC"); 90 90 if (!strcasecmp (argv[4], "STG")) 91 strcpy (graphmode.coords.ctype, " RA---STG");91 strcpy (graphmode.coords.ctype, "DEC--STG"); 92 92 if (!strcasecmp (argv[4], "ZEA")) 93 strcpy (graphmode.coords.ctype, " RA---ZEA");93 strcpy (graphmode.coords.ctype, "DEC--ZEA"); 94 94 if (!strcasecmp (argv[4], "AIT")) 95 strcpy (graphmode.coords.ctype, " RA---AIT");95 strcpy (graphmode.coords.ctype, "DEC--AIT"); 96 96 if (!strcasecmp (argv[4], "GLS")) 97 strcpy (graphmode.coords.ctype, " RA---GLS");97 strcpy (graphmode.coords.ctype, "DEC--GLS"); 98 98 if (!strcasecmp (argv[4], "PAR")) 99 strcpy (graphmode.coords.ctype, " RA---PAR");99 strcpy (graphmode.coords.ctype, "DEC--PAR"); 100 100 } 101 101 -
branches/eam_branches/ipp-20131211/Ohana/src/opihi/dvo/find_matches.c
r29759 r36398 50 50 tcoords.pc1_2 = tcoords.pc2_1 = 0.0; 51 51 tcoords.Npolyterms = 1; 52 strcpy (tcoords.ctype, " RA---ARC");52 strcpy (tcoords.ctype, "DEC--ARC"); 53 53 54 54 // this region includes a boundary layer of size RADIUS -
branches/eam_branches/ipp-20131211/Ohana/src/opihi/dvo/gimages.c
r34844 r36398 136 136 local.pc2_1 = local.pc1_2 = 0.0; 137 137 local.Npolyterms = 1; 138 strcpy (local.ctype, " RA---TAN");138 strcpy (local.ctype, "DEC--TAN"); 139 139 140 140 if (typehash == DistortImage) { -
branches/eam_branches/ipp-20131211/Ohana/src/opihi/dvo/showtile.c
r34584 r36398 34 34 coords.pc1_2 = coords.pc2_1 = 0.0; 35 35 coords.Npolyterms = 0; 36 strcpy (coords.ctype, " RA---TAN");36 strcpy (coords.ctype, "DEC--TAN"); 37 37 38 38 /* fill in top-left region */ -
branches/eam_branches/ipp-20131211/Ohana/src/opihi/dvo/simage.c
r34584 r36398 43 43 /* get astrometry information */ 44 44 strcpy (coords.ctype, "NONE"); 45 gfits_scan (&header, "CTYPE 1", "%s", 1, coords.ctype);46 if (strcmp (coords.ctype, " RA---PLY")) {45 gfits_scan (&header, "CTYPE2", "%s", 1, coords.ctype); 46 if (strcmp (coords.ctype, "DEC--PLY")) { 47 47 gprint (GP_ERR, "ERROR: wrong astrometric info in header\n"); 48 48 return (FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.
