Changeset 40220 for branches/eam_branches/ohana.20170822
- Timestamp:
- Nov 28, 2017, 12:49:08 PM (9 years ago)
- Location:
- branches/eam_branches/ohana.20170822/src/relastro/src
- Files:
-
- 2 edited
-
UpdateMeasures.c (modified) (3 diffs)
-
args.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/relastro/src/UpdateMeasures.c
r39926 r40220 114 114 } 115 115 116 // XXX this stuff is rather hackish, added to do GSC/HSC/Megacam astrometry 117 118 // only modify the chip coordinates 119 if (UPDATE_ALL_MEASURE) { 120 measureT->R = R; 121 measureT->D = D; 122 if (measureB) { 123 measureB->R = R; 124 measureB->D = D; 125 } 126 goto set_measure_done; 127 } 116 128 // only modify the chip coordinates 117 129 if (UPDATE_PS1_STACK_MEASURE && isGPC1stack (measureT->photcode)) { … … 122 134 measureB->D = D; 123 135 } 136 goto set_measure_done; 124 137 } 125 138 // only modify the chip coordinates … … 131 144 measureB->D = D; 132 145 } 133 } 134 // only modify the chip coordinates 135 if (UPDATE_HSC_MEASURE && isGPC1chip (measureT->photcode)) { 136 measureT->R = R; 137 measureT->D = D; 138 if (measureB) { 139 measureB->R = R; 140 measureB->D = D; 141 } 142 } 143 // only modify the chip coordinates 144 if (UPDATE_CFH_MEASURE && isGPC1chip (measureT->photcode)) { 145 measureT->R = R; 146 measureT->D = D; 147 if (measureB) { 148 measureB->R = R; 149 measureB->D = D; 150 } 151 } 146 goto set_measure_done; 147 } 148 // only modify the chip coordinates 149 if (UPDATE_HSC_MEASURE && isHSCchip (measureT->photcode)) { 150 measureT->R = R; 151 measureT->D = D; 152 if (measureB) { 153 measureB->R = R; 154 measureB->D = D; 155 } 156 goto set_measure_done; 157 } 158 // only modify the chip coordinates 159 if (UPDATE_CFH_MEASURE && isCFHchip (measureT->photcode)) { 160 measureT->R = R; 161 measureT->D = D; 162 if (measureB) { 163 measureB->R = R; 164 measureB->D = D; 165 } 166 goto set_measure_done; 167 } 168 set_measure_done: 152 169 } 153 170 if (VERBOSE) fprintf (stderr, "%s : Noff ori RA %d ( %d %d %d ), Noff ori DEC %d ( %d %d %d )\n", catalog[i].filename, NoffRAori, NoffRAchip, NoffRAstack, NoffRAwarp, NoffDECori, NoffDECchip, NoffDECstack, NoffDECwarp); -
branches/eam_branches/ohana.20170822/src/relastro/src/args.c
r39926 r40220 158 158 } 159 159 160 UPDATE_ALL_MEASURE = FALSE; 161 if ((N = get_argument (argc, argv, "-update-all-cameras"))) { 162 remove_argument (N, &argc, argv); 163 UPDATE_ALL_MEASURE = TRUE; 164 } 160 165 UPDATE_PS1_STACK_MEASURE = FALSE; 161 166 if ((N = get_argument (argc, argv, "-update-ps1-stack"))) { … … 179 184 } 180 185 if (RELASTRO_OP == OP_UPDATE_OFFSETS) { 181 if (!UPDATE_ PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {182 fprintf (stderr, "for -update-offsets, need to select at least one of -update- ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n");186 if (!UPDATE_ALL_MEASURE && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) { 187 fprintf (stderr, "for -update-offsets, need to select at least one of -update-all-cameras, -update-ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n"); 183 188 exit (2); 184 189 }
Note:
See TracChangeset
for help on using the changeset viewer.
