IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13142


Ignore:
Timestamp:
May 2, 2007, 2:21:02 PM (19 years ago)
Author:
eugene
Message:

add secfilt to AddToCalibration

Location:
trunk/Ohana/src/addstar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/include/addstar.h

    r12840 r13142  
    7777char   CCDNumKeyword[64];
    7878char   STKeyword[64];
     79char   ExtnameKeyword[64];
    7980
    8081/* these globals modify the behavior of gstars (KEEP) */
     
    122123/*** addstar prototypes ***/
    123124
    124 void       AddToCalibration       PROTO((Average *average, Measure *measure, Measure *new, int *next, int Nstar));
     125void       AddToCalibration       PROTO((Average *average, SecFilt *secfilt, Measure *measure, Measure *new, int *next, int Nstar));
    125126AddstarClientOptions ConfigInit   PROTO((int *argc, char **argv));
    126127void       FindCalibration        PROTO((Image *image));
  • trunk/Ohana/src/addstar/src/find_matches.c

    r12400 r13142  
    184184      catalog[0].measure[Nmeas].theta    = MIN ((0xffff/360.0)*stars[N].df, NO_MAG);
    185185       
     186      /* adds the measurement to the calibration if appropriate color terms are found */
     187      /* we call this before (optionally) setting the average magnitude to avoid auto-correlations */
     188      if (options.calibrate) {
     189        AddToCalibration (&catalog[0].average[n], &catalog[0].secfilt[n*Nsecfilt], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N);
     190      }
     191
    186192      /* set the average magnitude if not already set and if photcode.equiv is not 0 */
    187193      /* in UPDATE mode, this value is not saved; use relphot to recalculate */
     
    190196              catalog[0].secfilt[n*Nsecfilt+Nsec].M = PhotCat (&catalog[0].measure[Nmeas]);
    191197          }
    192       }
    193 
    194       /* adds the measurement to the calibration if appropriate color terms are found */
    195       if (options.calibrate) {
    196         AddToCalibration (&catalog[0].average[n], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N);
    197198      }
    198199
  • trunk/Ohana/src/addstar/src/find_matches_closest.c

    r12400 r13142  
    212212    /* adds the measurement to the calibration if appropriate color terms are found */
    213213    if (options.calibrate) {
    214       AddToCalibration (&catalog[0].average[n], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N);
     214      AddToCalibration (&catalog[0].average[n], &catalog[0].secfilt[n*Nsecfilt], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N);
    215215    }
    216216
Note: See TracChangeset for help on using the changeset viewer.