IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39212


Ignore:
Timestamp:
Dec 3, 2015, 1:27:05 PM (11 years ago)
Author:
eugene
Message:

load starpar if GMM; restrict by distance modulus & error; pass uRgal, uDgal

Location:
branches/eam_branches/ipp-20151113/Ohana/src/relastro/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20151113/Ohana/src/relastro/src/BrightCatalog.c

    r39211 r39212  
    191191    ALLOCATE (average, Average, Nrow);
    192192    for (i = 0; i < Nrow; i++) {
     193      dvo_average_init (&average[i]);
    193194      average[i].R               = R[i]               ;
    194195      average[i].D               = D[i]               ;
     
    495496    gfits_define_bintable_column (&theader, "E", "U_RA",           "RA*cos(D) proper-motion",                             "", 1.0, 0.0);
    496497    gfits_define_bintable_column (&theader, "E", "U_DEC",          "DEC proper-motion",                                   "", 1.0, 0.0);
    497     gfits_define_bintable_column (&theader, "E", "V_RA_ERR",       "RA*cos(D) p-m error",                                 "", 1.0, 0.0);
    498     gfits_define_bintable_column (&theader, "E", "V_DEC_ERR",      "DEC p-m error",                                       "", 1.0, 0.0);
     498    gfits_define_bintable_column (&theader, "E", "U_RA_ERR",       "RA*cos(D) p-m error",                                 "", 1.0, 0.0);
     499    gfits_define_bintable_column (&theader, "E", "U_DEC_ERR",      "DEC p-m error",                                       "", 1.0, 0.0);
     500    gfits_define_bintable_column (&theader, "E", "U_RA_GAL",       "RA*cos(D) p-m error",                                 "", 1.0, 0.0);
     501    gfits_define_bintable_column (&theader, "E", "U_DEC_GAL",      "DEC p-m error",                                       "", 1.0, 0.0);
    499502    gfits_define_bintable_column (&theader, "E", "PAR",            "parallax",                                            "", 1.0, 0.0);
    500503    gfits_define_bintable_column (&theader, "E", "PAR_ERR",        "parallax error",                                      "", 1.0, 0.0);
  • branches/eam_branches/ipp-20151113/Ohana/src/relastro/src/bcatalog.c

    r38986 r39212  
    117117      if (!isfinite(catalog[0].average[i].uRgal)) continue;
    118118      if (!isfinite(catalog[0].average[i].uDgal)) continue;
     119     
     120      // filter stars which are not well-handled by the galactic motion model
     121      int mStarpar = catalog[0].average[i].starparOffset;
     122      myAssert (mStarpar < catalog[0].Nstarpar, "oops");
     123     
     124      StarPar *starpar = &catalog[0].starpar[mStarpar];
     125      if (starpar->DistMag  < MIN_DISTANCE_MOD) continue;
     126      if (starpar->DistMag  > MAX_DISTANCE_MOD) continue;
     127      if (starpar->dDistMag > MAX_DISTANCE_MOD_ERR) continue;
    119128    }
    120129
  • branches/eam_branches/ipp-20151113/Ohana/src/relastro/src/load_catalogs.c

    r39207 r39212  
    4444    pcatalog->catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT; // don't need to load all data at this point
    4545    pcatalog->Nsecfilt  = GetPhotcodeNsecfilt ();
     46
     47    if (USE_GALAXY_MODEL) {
     48      pcatalog->catflags = pcatalog->catflags | DVO_LOAD_STARPAR;
     49    }
    4650
    4751    // loads Average, Measure, SecFilt
Note: See TracChangeset for help on using the changeset viewer.