IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2005, 3:21:40 PM (21 years ago)
Author:
eugene
Message:

substantial work to move kii/kapa call into libkapa

Location:
trunk/Ohana/src/opihi/cmd.astro
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/gauss.c

    r5846 r5850  
    5454  for (i = 0; (i < Nspot) || (Nspot == 0); i++) {
    5555    KiiCursorRead (Ximage, &X, &Y, key);
    56 
    5756    if (!strcasecmp (key, "Q")) break;
    58 
    5957    Z = get_aperture_stats (&buf[0].matrix, (int)(X+0.5), (int)(Y+0.5), Npix, Nborder, max);
    6058  }
  • trunk/Ohana/src/opihi/cmd.astro/region.c

    r5386 r5850  
    33int region (int argc, char **argv) {
    44 
    5   char buffer[65], string[256];
     5  char string[256];
    66  double Ra, Dec, Radius;
    77  double dx, dy;
     
    6060 
    6161  /* ask kapa for coordinate limits, so get the right aspect ratio */
    62   SendGraphCommand (Xgraph, 4, "LIMS");
    63   read (Xgraph, buffer, 30);
    64   sscanf (buffer, "%*s %lf %lf", &dx, &dy);
     62  KiiSendCommand (Xgraph, 4, "LIMS");
     63  KiiScanMessage (Xgraph, "%lf %lf", &dx, &dy);
    6564  dx = fabs (dx);
    6665  dy = fabs (dy);
     
    102101  graphmode.coords.cdelt1 = graphmode.coords.cdelt2 = 1.0;
    103102
    104   SendGraphCommand (Xgraph, 4, "ERAS");
    105   SendGraphCommand (Xgraph, 4, "SLIM");
    106   SendGraphMessage (Xgraph, "%f %f %f %f", graphmode.xmin, graphmode.xmax, graphmode.ymin, graphmode.ymax);
     103  KapaClear (Xgraph, FALSE);
     104  KapaSetLimits (Xgraph, &graphmode);
    107105
     106  /* drop this? */
    108107  sprintf (string, "%8.4f %8.4f (%f)", Ra, Dec, Radius);
    109   SendLabel (string, Xgraph, 2);
     108  KapaSendLabel (Xgraph, string, 2);
    110109
    111110  SetGraph (graphmode);
    112 
    113111  return (TRUE);
    114 
    115112}
    116113
Note: See TracChangeset for help on using the changeset viewer.