IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41886


Ignore:
Timestamp:
Nov 4, 2021, 5:52:02 PM (5 years ago)
Author:
eugene
Message:

merge changes from trunk (loadgaia_edr3)

Location:
branches/eam_branches/ipp-dev-20210817/Ohana
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-dev-20210817/Ohana

  • branches/eam_branches/ipp-dev-20210817/Ohana/src/addstar/src/grefstars.c

    r38986 r41886  
    1212  if (f == NULL) Shutdown ("can't read data from %s", file);
    1313
    14   NSTARS = 1000;
     14  NSTARS = 10000000;
    1515
    1616  Catalog *catalog = NULL;
  • branches/eam_branches/ipp-dev-20210817/Ohana/src/addstar/src/loadgaia_edr3_readstars.c

    r41563 r41886  
    329329    }
    330330
     331    stars[Nstars].average.Nmeasure = 3;
    331332    stars[Nstars].average.R = Rg[i];
    332333    stars[Nstars].average.D = Dg[i];
     
    368369      stars[Nstars].measure[j].D = Dg[i];
    369370
    370       //stars[Nstars].measure[j].psfNpix = nObs[i];
    371       //stars[Nstars].measure[j].psfNdof = nGood[i];
    372       stars[Nstars].measure[j].psfNpix = ngg[i] + nbg[i] + nrg[i];
     371      stars[Nstars].measure[j].psfNpix = nPeriods[i]; // number of observation for period calculation
    373372      stars[Nstars].measure[j].extNsigma = goFit[i];
    374373      stars[Nstars].measure[j].psfChisq = chiSq[i];
    375374      stars[Nstars].measure[j].psfQF = exNoise[i];
    376375      stars[Nstars].measure[j].psfQFperf = exNoiseSig[i];
    377       stars[Nstars].measure[j].FWx = nPeriods[i]; // this one is not great
     376      stars[Nstars].measure[j].Xccd = nObs[i]; // number of observation for astrometry
     377      stars[Nstars].measure[j].Xfix = nGood[i]; // number of observations for astrometry fitting
     378      stars[Nstars].measure[j].XoffKH  = ngg[i]; // number of observations for g band
     379      stars[Nstars].measure[j].XoffDCR = nbg[i]; // number of observation for bp band
     380      stars[Nstars].measure[j].XoffCAM = nrg[i]; // number of observations for rp band
    378381      stars[Nstars].measure[j].photFlags = photFlags;
    379382      stars[Nstars].measure[j].t = GAIA_EDR3_EPOCH;
     
    382385    // the flux reported by Gaia is in electrons / second; we just want to use the mags:
    383386    // dgg, dbg, drg store (flux / error), i.e., S/N.  mag error is 2.5/ln(10) ~ 1.0857 / (S/N)
     387    // ngg, nbg, nrg: number of measurement for the photcode
    384388    stars[Nstars].measure[0].M  = gg[i];
    385389    stars[Nstars].measure[0].dM = 1.08573620476 / dgg[i];
     
    398402    stars[Nstars].measure[2].photcode = codeR;
    399403
    400     // printf ("%10.5f %10.5f %10.5f\n", gg[i], bg[i], rg[i]);
    401     // stars[Nstars].measure.dM = dmgFlux[i] / flux;
    402     // stars[Nstars].measure.FluxPSF = flux;
    403     // stars[Nstars].measure.dFluxPSF = dgFlux[i];
    404     // stars[Nstars].measure.t = options->timeref;
    405 
    406     stars[Nstars].average.Nmeasure = 3;
    407404    // Not sure how to make these work
    408     stars[Nstars].average.Npos     = nGood[i];
    409     stars[Nstars].average.Nmissing = nObs[i] - nGood[i];
    410     //stars[Nstars].average.Nmissing = 1;
    411 
    412     printf ("%5d %5d %5d %5d %5d %5d\n", nObs[i], nGood[i], ngg[i], nbg[i], nrg[i], nPeriods[i]);
     405    // stars[Nstars].average.Npos     = nGood[i];
     406    // stars[Nstars].average.Nmissing = nObs[i] - nGood[i];
     407
     408    //printf ("%5d %5d %5d %5d %5d %5d\n", nObs[i], nGood[i], ngg[i], nbg[i], nrg[i], nPeriods[i]);
    413409    Nstars ++;
    414410
Note: See TracChangeset for help on using the changeset viewer.