IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2008, 11:51:41 AM (18 years ago)
Author:
eugene
Message:

addstar no longer carries a static MOSAIC entry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/args_client.c

    r14590 r16983  
    6262  }
    6363  /* provide a mosaic for distortion */
    64   MOSAIC = NULL;
    6564  options.mosaic = FALSE;
    6665  if ((N = get_argument (argc, argv, "-mosaic"))) {
    6766    Header header;
    68     ALLOCATE (MOSAIC, Coords, 1);
     67    Coords MOSAIC;
    6968
    7069    remove_argument (N, &argc, argv);
     
    7372      exit (1);
    7473    }
    75     if (!GetCoords (MOSAIC, &header)) {
     74    if (!GetCoords (&MOSAIC, &header)) {
    7675      fprintf (stderr, "ERROR: no astrometric solution in header\n");
    7776      exit (1);
    7877    }
    79     if (strcmp(&MOSAIC[0].ctype[4], "-DIS")) {
     78    if (strcmp(&MOSAIC.ctype[4], "-DIS")) {
    8079      fprintf (stderr, "ERROR: not a mosaic distortion header\n");
    8180      exit (1);
    8281    }
     82    RegisterMosaic (&MOSAIC);
    8383    remove_argument (N, &argc, argv);
    8484    gfits_free_header (&header);
Note: See TracChangeset for help on using the changeset viewer.