IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38474


Ignore:
Timestamp:
Jun 15, 2015, 11:53:29 AM (11 years ago)
Author:
eugene
Message:

if reset is requested, reset all photcodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/setMrelFinal.c

    r38466 r38474  
    88
    99  off_t i;
    10   int ecode;
    1110
    1211  int Nsecfilt = GetPhotcodeNsecfilt ();
     
    3837    //   ID_SECF_OBJ_EXT; // average measured at pass 3
    3938   
    40     int Ns;
    41     for (Ns = 0; Ns < Nphotcodes; Ns++) {
    42        
    43       int thisCode = photcodes[Ns][0].code;
    44       int Nsec = GetPhotcodeNsec(thisCode);
    45 
    46       for (i = 0; i < catalog[0].Naverage; i++) {
    47         off_t N = Nsecfilt*i+Nsec;
     39    // XXX I should really deprecate the concept of applying the average
     40    // calculation to a limited set of photcodes. 
     41    // for now, just do all photcodes here (
     42    // as it stands, only stacks are limited by photcode; mean exp and forced warp
     43    // are applied to all Nsecfilt
     44
     45    for (i = 0; i < catalog[0].Naverage; i++) {
     46      int Ns;
     47      for (Ns = 0; Ns < Nsecfilt; Ns++) {
     48       
     49        off_t N = Nsecfilt*i+Ns;
    4850        dvo_secfilt_init (&catalog[0].secfilt[N], SECFILT_RESET_ALL);
    4951
     
    5254        for (j = 0; j < catalog[0].average[i].Nmeasure; j++, m++) {
    5355       
    54           // skip measurements that do not match the current photcode
    55           ecode = GetPhotcodeEquivCodebyCode (catalog[0].measure[m].photcode);
    56           if (ecode != thisCode) { continue; }
    57 
    5856          /* select measurements by time */
    5957          if (TimeSelect) {
Note: See TracChangeset for help on using the changeset viewer.