IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17203


Ignore:
Timestamp:
Mar 28, 2008, 3:37:17 PM (18 years ago)
Author:
eugene
Message:

remove / rework unneeded globals

Location:
trunk/Ohana/src/relastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/plot_scatter.c

    r16810 r17203  
    44
    55# if (0)   
    6   int i, j, k, m, N, Ntot;
     6  int i, j, k, m, N, Ntot, Nsecfilt;
    77  float Mrel, Mcal, Mmos, Mgrid;
    88  double *xlist, *ylist, *ilist;
    99  Graphdata graphdata;
     10
     11  // XXX in the future, use catalog[0].Nsecfilt only?  allow catalogs to have variable Nsecfilt?
     12  Nsecfilt = GetPhotcodeNsecfilt ();
     13  assert (catalog[0].Nsecfilt == Nsecfilt);
    1014
    1115  Ntot = 0;
     
    3034        if (catalog[i].measure[m].flags & MEAS_BAD) continue;
    3135
    32         Mrel = catalog[i].secfilt[PhotNsec*j+PhotSec].M;
     36        Mrel = catalog[i].secfilt[Nsecfilt*j+PhotSec].M;
    3337        xlist[N] = Mrel;
    34         ylist[N] = PhotSys  (&catalog[i].measure[m], &catalog[i].average[j], &catalog[i].secfilt[j*PhotNsec]) - Mcal - Mmos - Mgrid - Mrel;
     38        ylist[N] = PhotSys  (&catalog[i].measure[m], &catalog[i].average[j], &catalog[i].secfilt[j*Nsecfilt]) - Mcal - Mmos - Mgrid - Mrel;
    3539        ilist[N] = PhotInst (&catalog[i].measure[m]);
    3640        N++;
  • trunk/Ohana/src/relastro/src/plotstuff.c

    r16060 r17203  
    44static int Xgraph[5] = {0,0,0,0,0};
    55static int active;
     6
     7enum {black, white, red, orange, yellow, green, blue, indigo, violet};
    68
    79/*
Note: See TracChangeset for help on using the changeset viewer.