Changeset 37822 for branches/eam_branches/ipp-pv3-20140717-merge/Ohana/src/getstar/src/MatchImages.c
- Timestamp:
- Jan 12, 2015, 12:29:24 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-pv3-20140717-merge/Ohana
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/getstar (modified) (1 prop)
-
src/getstar/src/MatchImages.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pv3-20140717-merge/Ohana
- Property svn:mergeinfo set to
-
branches/eam_branches/ipp-pv3-20140717-merge/Ohana/src/getstar
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-pv3-20140717-merge/Ohana/src/getstar/src/MatchImages.c
r36481 r37822 23 23 /* we keep the original crpix1,2 and crref1,2 */ 24 24 /* for mosaic astrometry, the grid should be w.r.t. the tangent-plane, not chip coords */ 25 InitCoords (&tcoords, "DEC--TAN"); 25 26 if (!strcmp (&image[0].coords.ctype[4], "-WRP")) { 26 // if the input image is a mosaic, we need to register that mosaic for the calculations below 27 if (MOSAIC == NULL) { 28 fprintf (stderr, "no mosaic for WRP image (use -mosaic)\n"); 29 return NULL; 30 } 31 RegisterMosaic (MOSAIC); 32 33 tcoords = MOSAIC[0]; 27 myAssert (image[0].coords.mosaic, "should already have tested this"); 28 tcoords = image[0].coords.mosaic[0]; 34 29 tcoords.cdelt1 = tcoords.cdelt2 = 1.0 / 3600.0; 35 tcoords.pc1_1 = tcoords.pc2_2 = 1.0;36 tcoords.pc1_2 = tcoords.pc2_1 = 0.0;37 tcoords.Npolyterms = 1;38 strcpy (tcoords.ctype, "DEC--TAN");39 30 /* register so image->sky conversions below have correct mosaic */ 40 31 } else { 41 32 tcoords = image[0].coords; 42 33 tcoords.cdelt1 = tcoords.cdelt2 = 1.0 / 3600.0; 43 tcoords.pc1_1 = tcoords.pc2_2 = 1.0;44 tcoords.pc1_2 = tcoords.pc2_1 = 0.0;45 tcoords.Npolyterms = 1;46 strcpy (tcoords.ctype, "DEC--TAN");47 34 } 48 35 … … 77 64 if (!WITH_PHU && !strcmp (&dbImages[i].coords.ctype[4], "-DIS")) continue; 78 65 if ( SOLO_PHU && strcmp (&dbImages[i].coords.ctype[4], "-DIS")) continue; 79 80 /* if any of these images are WRP images, need to find matching DIS */81 if (!FindMosaicForImage (dbImages, NdbImages, i)) continue;82 66 83 67 /* define image corners */
Note:
See TracChangeset
for help on using the changeset viewer.
