Changeset 39212
- Timestamp:
- Dec 3, 2015, 1:27:05 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20151113/Ohana/src/relastro/src
- Files:
-
- 3 edited
-
BrightCatalog.c (modified) (2 diffs)
-
bcatalog.c (modified) (1 diff)
-
load_catalogs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20151113/Ohana/src/relastro/src/BrightCatalog.c
r39211 r39212 191 191 ALLOCATE (average, Average, Nrow); 192 192 for (i = 0; i < Nrow; i++) { 193 dvo_average_init (&average[i]); 193 194 average[i].R = R[i] ; 194 195 average[i].D = D[i] ; … … 495 496 gfits_define_bintable_column (&theader, "E", "U_RA", "RA*cos(D) proper-motion", "", 1.0, 0.0); 496 497 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); 499 502 gfits_define_bintable_column (&theader, "E", "PAR", "parallax", "", 1.0, 0.0); 500 503 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 117 117 if (!isfinite(catalog[0].average[i].uRgal)) continue; 118 118 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; 119 128 } 120 129 -
branches/eam_branches/ipp-20151113/Ohana/src/relastro/src/load_catalogs.c
r39207 r39212 44 44 pcatalog->catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT; // don't need to load all data at this point 45 45 pcatalog->Nsecfilt = GetPhotcodeNsecfilt (); 46 47 if (USE_GALAXY_MODEL) { 48 pcatalog->catflags = pcatalog->catflags | DVO_LOAD_STARPAR; 49 } 46 50 47 51 // loads Average, Measure, SecFilt
Note:
See TracChangeset
for help on using the changeset viewer.
