Changeset 38701
- Timestamp:
- Sep 3, 2015, 6:19:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/relastro/src/GetAstromError.c
r38697 r38701 69 69 // to match the 2MASS / Tycho / ICRS reference frame. As Nloop gets higher, the weight 70 70 // needs to drop to allow the ps1 measurements to drive the solution 71 int is2MASS = (measure[0].photcode >= 2011) && (measure[0].photcode <= 2013); 72 int isTycho = (measure[0].photcode >= 2020) && (measure[0].photcode <= 2021); 71 int is2MASS = USE_GALAXY_MODEL && !isImage && (measure[0].photcode >= 2011) && (measure[0].photcode <= 2013); 72 int isTycho = USE_GALAXY_MODEL && !isImage && (measure[0].photcode >= 2020) && (measure[0].photcode <= 2021); 73 int has2MASS = USE_GALAXY_MODEL && isImage && (measure[0].dbFlags & ID_MEAS_OBJECT_HAS_2MASS); 73 74 74 75 // serious hack: if the object has 2MASS, we set this internal bit and adjust the 75 76 // weight to ensure the image is tied down to the 2mass frame 76 77 77 // we only adjust the weight if we are applying the galaxy model 78 int modifyWeight = isImage && (measure[0].dbFlags & ID_MEAS_POOR_PHOTOM); 79 modifyWeight |= is2MASS; 80 modifyWeight |= isTycho; 81 modifyWeight &= USE_GALAXY_MODEL; 82 83 if (modifyWeight && is2MASS) { 78 if (has2MASS) { 84 79 switch (Nloop) { 85 80 case 0: 81 dPtotal = dPtotal / 1000.0; 82 break; 86 83 case 1: 84 dPtotal = dPtotal / 300.0; 85 break; 86 case 2: 87 87 dPtotal = dPtotal / 100.0; 88 88 break; 89 case 2:90 89 case 3: 91 90 dPtotal = dPtotal / 30.0; 92 91 break; 93 92 case 4: 93 dPtotal = dPtotal / 10.0; 94 break; 94 95 case 5: 95 96 dPtotal = dPtotal / 10.0; … … 99 100 } 100 101 } 101 if (modifyWeight && isTycho) { 102 if (is2MASS) { 103 switch (Nloop) { 104 case 0: 105 dPtotal = dPtotal / 1000.0; 106 break; 107 case 1: 108 dPtotal = dPtotal / 300.0; 109 break; 110 case 2: 111 dPtotal = dPtotal / 100.0; 112 break; 113 case 3: 114 dPtotal = dPtotal / 30.0; 115 break; 116 case 4: 117 dPtotal = dPtotal / 10.0; 118 break; 119 case 5: 120 dPtotal = dPtotal / 10.0; 121 break; 122 default: 123 break; 124 } 125 } 126 if (isTycho) { 102 127 switch (Nloop) { 103 128 case 0:
Note:
See TracChangeset
for help on using the changeset viewer.
