IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2005, 9:22:34 PM (21 years ago)
Author:
eugene
Message:

added mosaic astrom support (WRP / DIS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/mosastro/src/output.c

    r3323 r3401  
    2020    strcat (outname, ext);
    2121
     22    /* convert chip from PLY to WRP (linked to field model) */
     23    strcpy (chip[i].map.ctype, "DEC--WRP");
    2224    PutCoords (&chip[i].map, &chip[i].header);
    2325    wchip (outname, &chip[i]);
     
    4143    fclose (f);
    4244  }
     45
     46  {
     47
     48    FILE *f;
     49    double R, D;
     50
     51    fprintf (stderr, "starting test.dat\n");
     52    f = fopen ("test.dat", "w");
     53    if (f == (FILE *) NULL) {
     54      fprintf (stderr, "ERROR: can't create output file \n");
     55      exit (1);
     56    }
     57
     58    RegisterMosaic (&field.project);
     59    for (i = 0; i < chip[0].Nmatch; i++) {
     60      XY_to_RD (&R, &D, chip[0].raw[i].X, chip[0].raw[i].Y, &chip[0].map);
     61      fprintf (f, "%4d  %10.6f %10.6f  %8.2f %8.2f\n",
     62               i, R, D, chip[0].raw[i].X, chip[0].raw[i].Y);
     63    }
     64    fclose (f);
     65  }
     66 
    4367}
Note: See TracChangeset for help on using the changeset viewer.