IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2015, 6:33:51 AM (11 years ago)
Author:
eugene
Message:

merge changes from eam branch ipp-20150405: add R7 to lensing, fix R5,R6,R7 definitions and mean photometry; calculate E1,E2 in dvolens; fix precision for dvopsps FW objects; fix histograms at axis; new colormap options; require primary skycell in diff mean photometry

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/Ohana/src/addstar/src/FilterStars.c

    r37357 r38153  
    105105      stars[N].measure.dFluxAp /= image[0].exptime;
    106106    }
     107    if (stars[N].lensing) {
     108      if (!isnan(stars[N].lensing-> F_ApR5)) stars[N].lensing-> F_ApR5 /= image[0].exptime;
     109      if (!isnan(stars[N].lensing->dF_ApR5)) stars[N].lensing->dF_ApR5 /= image[0].exptime;
     110      if (!isnan(stars[N].lensing->sF_ApR5)) stars[N].lensing->sF_ApR5 /= image[0].exptime;
     111      if (!isnan(stars[N].lensing->fF_ApR5)) stars[N].lensing->fF_ApR5 /= image[0].exptime;
     112
     113      if (!isnan(stars[N].lensing-> F_ApR6)) stars[N].lensing-> F_ApR6 /= image[0].exptime;
     114      if (!isnan(stars[N].lensing->dF_ApR6)) stars[N].lensing->dF_ApR6 /= image[0].exptime;
     115      if (!isnan(stars[N].lensing->sF_ApR6)) stars[N].lensing->sF_ApR6 /= image[0].exptime;
     116      if (!isnan(stars[N].lensing->fF_ApR6)) stars[N].lensing->fF_ApR6 /= image[0].exptime;
     117
     118      if (!isnan(stars[N].lensing-> F_ApR7)) stars[N].lensing-> F_ApR7 /= image[0].exptime;
     119      if (!isnan(stars[N].lensing->dF_ApR7)) stars[N].lensing->dF_ApR7 /= image[0].exptime;
     120      if (!isnan(stars[N].lensing->sF_ApR7)) stars[N].lensing->sF_ApR7 /= image[0].exptime;
     121      if (!isnan(stars[N].lensing->fF_ApR7)) stars[N].lensing->fF_ApR7 /= image[0].exptime;
     122    }
    107123   
    108124    // the external ID is supplied, but do we trust it?
  • trunk/Ohana/src/addstar/src/ReadXradFITS.c

    r37357 r38153  
    7272    }
    7373
    74     stars[i].lensing-> F_ApR5 = AperFlux   [Nap*Ncol + 3];
    75     stars[i].lensing->dF_ApR5 = AperFluxErr[Nap*Ncol + 3];
    76     stars[i].lensing->sF_ApR5 = AperFluxStd[Nap*Ncol + 3];
    77     stars[i].lensing->fF_ApR5 = AperFill   [Nap*Ncol + 3];
     74    // XXX this is all hard-wired and should make use of the headers.
     75    // psphot cmfs have 5 radial apertures:
     76    // array 0, 1, 2, 3, 4
     77    // SDSS  3, 4, 5, 6, 7
    7878
    79     stars[i].lensing-> F_ApR6 = AperFlux   [Nap*Ncol + 4];
    80     stars[i].lensing->dF_ApR6 = AperFluxErr[Nap*Ncol + 4];
    81     stars[i].lensing->sF_ApR6 = AperFluxStd[Nap*Ncol + 4];
    82     stars[i].lensing->fF_ApR6 = AperFill   [Nap*Ncol + 4];
     79    stars[i].lensing-> F_ApR5 = AperFlux   [Nap*Ncol + 2];
     80    stars[i].lensing->dF_ApR5 = AperFluxErr[Nap*Ncol + 2];
     81    stars[i].lensing->sF_ApR5 = AperFluxStd[Nap*Ncol + 2];
     82    stars[i].lensing->fF_ApR5 = AperFill   [Nap*Ncol + 2];
     83
     84    stars[i].lensing-> F_ApR6 = AperFlux   [Nap*Ncol + 3];
     85    stars[i].lensing->dF_ApR6 = AperFluxErr[Nap*Ncol + 3];
     86    stars[i].lensing->sF_ApR6 = AperFluxStd[Nap*Ncol + 3];
     87    stars[i].lensing->fF_ApR6 = AperFill   [Nap*Ncol + 3];
     88
     89    stars[i].lensing-> F_ApR7 = AperFlux   [Nap*Ncol + 4];
     90    stars[i].lensing->dF_ApR7 = AperFluxErr[Nap*Ncol + 4];
     91    stars[i].lensing->sF_ApR7 = AperFluxStd[Nap*Ncol + 4];
     92    stars[i].lensing->fF_ApR7 = AperFill   [Nap*Ncol + 4];
    8393    Nap ++;
    8494  }
  • trunk/Ohana/src/addstar/src/resort_catalog.c

    r37807 r38153  
    4040  resort_catalog_lensing (catalog);
    4141  resort_catalog_starpar (catalog);
     42
     43  // XXX somehow need to set the value of lensing->measure offset here
     44
     45
    4246}
    4347
Note: See TracChangeset for help on using the changeset viewer.