Changeset 37807 for trunk/Ohana/src/opihi/dvo/skycoverage.c
- Timestamp:
- Jan 11, 2015, 2:14:39 PM (12 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/dvo/skycoverage.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/dvo/skycoverage.c
r33963 r37807 204 204 strcpy (buf[0].file, "(empty)"); 205 205 206 InitCoords (&coords, projection); 206 207 coords.crval1 = RaCenter; 207 208 coords.crval2 = DecCenter; 208 209 coords.crpix1 = 0.5*Nx; 209 210 coords.crpix2 = 0.5*Ny; 210 strcpy (coords.ctype, projection); 211 coords.pc1_1 = -1.0; 211 coords.pc1_1 = -1.0; // sky parity 212 212 coords.pc2_2 = +1.0; 213 coords.pc1_2 = 0.0;214 coords.pc2_1 = 0.0;215 213 coords.cdelt1 = coords.cdelt2 = pixscale; 216 coords.Npolyterms = 0;217 214 218 215 PutCoords (&coords, &buf[0].header); … … 222 219 return (FALSE); 223 220 } 224 BuildChipMatch (image, Nimage);221 // BuildChipMatch (image, Nimage); 225 222 226 223 V = (float *)buf[0].matrix.buffer; … … 230 227 for (xs = 0; xs < Nx; xs++) { 231 228 status = XY_to_RD (&r, &d, (double)(xs), (double)(ys), &coords); 232 status &= (r >= 0);233 status &= (r <= 360); 229 r = ohana_normalize_angle (r); 230 234 231 // are we in a part of the projection covering the sky or not? 235 232 if (status) { … … 284 281 } 285 282 } 286 287 if (!FindMosaicForImage (image, Nimage, i)) continue;288 283 289 284 typehash = wordhash (&image[i].coords.ctype[4]);
Note:
See TracChangeset
for help on using the changeset viewer.
