Changeset 16980
- Timestamp:
- Mar 13, 2008, 11:50:21 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libdvo/src/coordops.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/coordops.c
r14590 r16980 1 1 # include <dvo.h> 2 2 3 static Coords *mosaic = NULL; 3 static Coords mosaic; 4 static int gotMosaic = FALSE; 4 5 5 6 void RegisterMosaic (Coords *coords) { 6 mosaic = coords; 7 mosaic = *coords; 8 gotMosaic = TRUE; 9 } 10 11 int isRegisteredMosaic () { 12 return (gotMosaic); 13 } 14 15 int GetMosaicCoords (Coords *coords) { 16 *coords = mosaic; 17 return (TRUE); 7 18 } 8 19 … … 52 63 /* mosaic astrometry : WRP is chip astrometry; apply mosaic (DIS) term */ 53 64 if (proj == PROJ_WRP) { 54 if ( mosaic == NULL) return (FALSE);55 XY_to_RD (ra, dec, *ra, *dec, mosaic);65 if (!gotMosaic) return (FALSE); 66 XY_to_RD (ra, dec, *ra, *dec, &mosaic); 56 67 } 57 68 return (TRUE); … … 185 196 if (mode == PROJ_MODE_CARTESIAN) { 186 197 if (proj == PROJ_WRP) { 187 if ( mosaic == NULL) return (FALSE);188 RD_to_XY (&Lo, &Mo, ra, dec, mosaic);198 if (!gotMosaic) return (FALSE); 199 RD_to_XY (&Lo, &Mo, ra, dec, &mosaic); 189 200 *L = (Lo - coords[0].crval1); 190 201 *M = (Mo - coords[0].crval2);
Note:
See TracChangeset
for help on using the changeset viewer.
