IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 12:21:18 PM (19 years ago)
Author:
eugene
Message:

complete merge from branch dvo-mods-2007-02

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/fitsed.c

    r8455 r12332  
    2525  int *hashcode;
    2626  int i, j, k, m, N, done, Nfit;
    27   int Nsec, status;
     27  int Nsecfilt, status;
    2828  void *oldsignal;
    2929  char *RegionName, *RegionList;
     
    6868  resSection.name = NULL;
    6969
     70  Nrow = 0;
     71
     72  fiterrs = NULL;
     73  fitmags = NULL;
     74
    7075  oldsignal = signal (SIGINT, handle_interrupt);
    7176  interrupt = FALSE;
     
    7378  /* load photcode information */
    7479  if (!InitPhotcodes ()) goto escape;
    75   Nsec = GetPhotcodeNsecfilt ();
     80  Nsecfilt = GetPhotcodeNsecfilt ();
    7681
    7782  /* interpret command-line options */
     
    203208      m = catalog.average[i].offset;
    204209      for (j = 0; j < catalog.average[i].Nm; j++) {
    205         idx = hashcode[catalog.measure[m+j].source];
     210        idx = hashcode[catalog.measure[m+j].photcode];
    206211        if (idx == -1) continue;
    207212        // XXX do something more clever if more than one value exists per photcode
    208         sourceValue.mags[idx] = catalog.measure[m+j].M_PS + vegaToAB[idx];
    209         sourceError.mags[idx] = catalog.measure[m+j].dM_PS;
    210         if ((catalog.measure[m+j].source == USNOred) || (catalog.measure[m+j].source == USNOblu)) {
     213        sourceValue.mags[idx] = catalog.measure[m+j].M + vegaToAB[idx];
     214        sourceError.mags[idx] = catalog.measure[m+j].dM;
     215        if ((catalog.measure[m+j].photcode == USNOred) || (catalog.measure[m+j].photcode == USNOblu)) {
    211216          sourceError.mags[idx] = 0.3;
    212217        }
Note: See TracChangeset for help on using the changeset viewer.