IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 12, 2011, 3:10:26 PM (15 years ago)
Author:
eugene
Message:

use MeasureTiny and AverageTiny structures for the photometry analysis to save memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/Ohana/src/relphot/src/plot_scatter.c

    r31272 r31273  
    3636            for (k = 0; k < catalog[i].average[j].Nmeasure; k++, m++) {
    3737                // skip measurements that do not match the current photcode
    38                 int ecode = GetPhotcodeEquivCodebyCode (catalog[i].measure[m].photcode);
     38                int ecode = GetPhotcodeEquivCodebyCode (catalog[i].measureT[m].photcode);
    3939                if (ecode != thisCode) { continue; }
    4040
    41                 if (catalog[i].measure[m].dbFlags & MEAS_BAD) continue;
     41                if (catalog[i].measureT[m].dbFlags & MEAS_BAD) continue;
    4242                Mcal = getMcal  (m, i);
    4343                if (isnan(Mcal)) continue;
     
    4949                Mrel = catalog[i].secfilt[Nsecfilt*j+Nsec].M;
    5050                xlist[N] = Mrel;
    51                 ylist[N] = PhotSys  (&catalog[i].measure[m], &catalog[i].average[j], &catalog[i].secfilt[j*Nsecfilt]) - Mcal - Mmos - Mgrid - Mrel;
    52                 ilist[N] = PhotInst (&catalog[i].measure[m]);
     51                ylist[N] = PhotSysTiny (&catalog[i].measureT[m], &catalog[i].averageT[j], &catalog[i].secfilt[j*Nsecfilt]) - Mcal - Mmos - Mgrid - Mrel;
     52                ilist[N] = PhotInstTiny (&catalog[i].measureT[m]);
    5353                N++;
    5454            }
Note: See TracChangeset for help on using the changeset viewer.