IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2007, 12:23:09 PM (19 years ago)
Author:
eugene
Message:

upgrading to kapa 2.0 API, upgrades to dvo user interface

File:
1 edited

Legend:

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

    r8361 r13479  
    111111  graphdata.style = 2;
    112112  graphdata.ptype = 2;
    113   KapaClear (Xgraph, TRUE);
     113  KapaClearSections (Xgraph);
    114114  magSection.name = strcreate ("mag");
    115115  magSection.x  = 0;
     
    141141
    142142  int j, minRow, Nfilter;
    143   double X, Y;
     143  double X, Y, Z, RA, DEC;
    144144  char line[1024], key[20];
    145145
     
    156156  SWAP (graphdata.ymin, graphdata.ymax);
    157157
    158   KapaClear (Xgraph, TRUE);
     158  KapaClearSections (Xgraph);
    159159  KapaSetSection (Xgraph, &magSection);
    160160  KapaSetLimits (Xgraph, &graphdata);
     
    164164  graphdata.ptype = 7;
    165165  KapaPrepPlot (Xgraph, Nfilter, &graphdata);
    166   KapaPlotVector (Xgraph, Nfilter, table[0].wavecode);
    167   KapaPlotVector (Xgraph, Nfilter, fitmags);
     166  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x");
     167  KapaPlotVector (Xgraph, Nfilter, fitmags, "y");
    168168
    169169  graphdata.color = KapaColorByName ("red");
     
    178178  }
    179179  KapaPrepPlot (Xgraph, Nfilter, &graphdata);
    180   KapaPlotVector (Xgraph, Nfilter, table[0].wavecode);
    181   KapaPlotVector (Xgraph, Nfilter, fitmags);
    182   KapaPlotVector (Xgraph, Nfilter, fiterrs);
    183   KapaPlotVector (Xgraph, Nfilter, fiterrs);
     180  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x");
     181  KapaPlotVector (Xgraph, Nfilter, fitmags, "x");
     182  KapaPlotVector (Xgraph, Nfilter, fiterrs, "dym");
     183  KapaPlotVector (Xgraph, Nfilter, fiterrs, "dyp");
    184184  KapaSendLabel (Xgraph, "model,fit (mags)", 1);
    185185
     
    208208  }
    209209  KapaPrepPlot (Xgraph, Nfilter, &graphdata);
    210   KapaPlotVector (Xgraph, Nfilter, table[0].wavecode);
    211   KapaPlotVector (Xgraph, Nfilter, fitmags);
    212   KapaPlotVector (Xgraph, Nfilter, fiterrs);
    213   KapaPlotVector (Xgraph, Nfilter, fiterrs);
     210  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x");
     211  KapaPlotVector (Xgraph, Nfilter, fitmags, "y");
     212  KapaPlotVector (Xgraph, Nfilter, fiterrs, "dym");
     213  KapaPlotVector (Xgraph, Nfilter, fiterrs, "dyp");
    214214  KapaSendLabel (Xgraph, "wavelength (nm)", 0);
    215215  KapaSendLabel (Xgraph, "resid (mags)", 1);
    216216
    217217  KiiCursorOn (Xgraph);
    218   while (KiiCursorRead (Xgraph, &X, &Y, key)) {
     218  while (KiiCursorRead (Xgraph, &X, &Y, &Z, &RA, &DEC, key)) {
    219219    // fprintf (stderr, "window: %f %f (%s)\n", X, Y, key);
    220220    if (!strcasecmp (key, "Q")) {
Note: See TracChangeset for help on using the changeset viewer.