IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13455


Ignore:
Timestamp:
May 21, 2007, 3:38:33 PM (19 years ago)
Author:
eugene
Message:

fixed bugs related to kapa API changes

Location:
branches/kapa-mods-2007-05/Ohana/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/addstar/src/SEDops.c

    r13404 r13455  
    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);
  • branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KapaOpen.c

    r13437 r13455  
    225225    sprintf (line, "%s &", kapa_exec);
    226226  } else {
    227     sprintf (line, "%s -name %s &", kapa_exec, kapa_name);
     227    sprintf (line, "%s -name '%s' &", kapa_exec, kapa_name);
    228228  }
    229229  system (line);
  • branches/kapa-mods-2007-05/Ohana/src/relastro/src/plotstuff.c

    r13404 r13455  
    7676}
    7777
    78 void PlotVector (int Npts, double *vect, int mode, int N) {
     78void PlotVector (int Npts, double *vect, int mode, int N, char *type) {
    7979
    8080  float *values;
     
    8888  }
    8989
    90   KapaPlotVector (Xgraph[N], Npts, values);
     90  KapaPlotVector (Xgraph[N], Npts, values, type);
    9191  free (values);
    9292  return;
     
    115115
    116116  PrepPlotting (N, graphdata, 0);
    117   PlotVector (N, xlist, 0, 0);
    118   PlotVector (N, ylist, 1, 0);
     117  PlotVector (N, xlist, 0, 0, "x");
     118  PlotVector (N, ylist, 1, 0, "y");
    119119  if (label != NULL) PlotLabel (label, 0);
    120120  DonePlotting (graphdata, 0);
  • branches/kapa-mods-2007-05/Ohana/src/relphot/src/plotstuff.c

    r13404 r13455  
    2424
    2525  sprintf (name, "gastro [%d]", N);
    26   Xgraph[N] = KapaOpen ("kapa2", name);
     26  Xgraph[N] = KapaOpen ("/home/kiawe/eugene/psconfig/dev.linux/bin/kapa2", name);
    2727
    2828  if (Xgraph[N] < 0) {
     
    7676}
    7777
    78 void PlotVector (int Npts, double *vect, int mode, int N) {
     78void PlotVector (int Npts, double *vect, int mode, int N, char *type) {
    7979
    8080  float *values;
     
    8888  }
    8989
    90   KapaPlotVector (Xgraph[N], Npts, values);
     90  KapaPlotVector (Xgraph[N], Npts, values, type);
    9191  free (values);
    9292  return;
     
    115115
    116116  PrepPlotting (N, graphdata, 0);
    117   PlotVector (N, xlist, 0, 0);
    118   PlotVector (N, ylist, 1, 0);
     117  PlotVector (N, xlist, 0, 0, "x");
     118  PlotVector (N, ylist, 1, 0, "y");
    119119  if (label != NULL) PlotLabel (label, 0);
    120120  DonePlotting (graphdata, 0);
Note: See TracChangeset for help on using the changeset viewer.