Changeset 16983 for trunk/Ohana/src/addstar/src/args_client.c
- Timestamp:
- Mar 13, 2008, 11:51:41 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/args_client.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/args_client.c
r14590 r16983 62 62 } 63 63 /* provide a mosaic for distortion */ 64 MOSAIC = NULL;65 64 options.mosaic = FALSE; 66 65 if ((N = get_argument (argc, argv, "-mosaic"))) { 67 66 Header header; 68 ALLOCATE (MOSAIC, Coords, 1);67 Coords MOSAIC; 69 68 70 69 remove_argument (N, &argc, argv); … … 73 72 exit (1); 74 73 } 75 if (!GetCoords ( MOSAIC, &header)) {74 if (!GetCoords (&MOSAIC, &header)) { 76 75 fprintf (stderr, "ERROR: no astrometric solution in header\n"); 77 76 exit (1); 78 77 } 79 if (strcmp(&MOSAIC [0].ctype[4], "-DIS")) {78 if (strcmp(&MOSAIC.ctype[4], "-DIS")) { 80 79 fprintf (stderr, "ERROR: not a mosaic distortion header\n"); 81 80 exit (1); 82 81 } 82 RegisterMosaic (&MOSAIC); 83 83 remove_argument (N, &argc, argv); 84 84 gfits_free_header (&header);
Note:
See TracChangeset
for help on using the changeset viewer.
