IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42433


Ignore:
Timestamp:
Mar 23, 2023, 6:53:44 PM (3 years ago)
Author:
cclin33
Message:

add PS1_REF_V3 format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ops-20220906/Ohana/src/relphot/src/setMrelCatalog.c

    r42431 r42433  
    406406      secfilt[Nsec].flags |= ID_SECF_HAS_CFH;
    407407    }
    408 //  secfilt[Nsec].flags |= ID_SECF_AST_GAIA ;
    409 //  secfilt[Nsec].flags |= ID_SECF_PHO_SYNTH;
    410 //  secfilt[Nsec].flags |= ID_SECF_PHO_ATLAS;
    411 //  secfilt[Nsec].flags |= ID_SECF_PHO_PV3  ;
    412   secfilt[Nsec].flags |= ID_SECF_PHO_SOUTH;
    413 //  fprintf (stderr, "test obj %d %f %f %f %f %d %d\n", Ns, average[0].R, average[0].D, average[0].uR, average[0].uD, average[0].flags, isSetMrelFinal);
     408//  secfilt[Nsec].flags |= ID_SECF_AST_GAIA ; // for building reference catalog only, STAR_FEW need to comment out
     409//  secfilt[Nsec].flags |= ID_SECF_PHO_SYNTH; // for building reference catalog only, STAR_FEW need to comment out
     410//  secfilt[Nsec].flags |= ID_SECF_PHO_ATLAS; // for building reference catalog only, STAR_FEW need to comment out
     411//  secfilt[Nsec].flags |= ID_SECF_PHO_PV3  ; // for building reference catalog only, STAR_FEW need to comment out
     412//  secfilt[Nsec].flags |= ID_SECF_PHO_SOUTH; // for building reference catalog only, STAR_FEW need to comment out
    414413
    415414    // if -preserve-ps1 is set and this object has PS1 data, skip the rest of the steps:
     
    469468    int NrankingPSF = useOLS ? magStatsByRanking (&results->psfData[Nsec], psfstats) : magStatsByRankingIRLS (&results->psfData[Nsec], psfstats);
    470469    if (NrankingPSF < Nminmeas) {
    471 //      secfilt[Nsec].flags |= ID_SECF_STAR_FEW;
     470      secfilt[Nsec].flags |= ID_SECF_STAR_FEW;
    472471    } else {
    473472      secfilt[Nsec].MpsfChp  = psfstats->mean;
    474473      secfilt[Nsec].dMpsfChp = psfstats->error;
    475474      secfilt[Nsec].Mchisq   = (psfstats->Nmeas > 1) ? psfstats->chisq : NAN;
    476 //      secfilt[Nsec].flags &= ~ID_SECF_STAR_FEW;
     475      secfilt[Nsec].flags &= ~ID_SECF_STAR_FEW;
    477476    }
    478477
     
    558557          break;
    559558        case 3:
    560           //secfilt[Nsec].flags |= ID_SECF_RANK_3;
     559          secfilt[Nsec].flags |= ID_SECF_RANK_3;
    561560          break;
    562561        case 4:
Note: See TracChangeset for help on using the changeset viewer.