Changeset 39811
- Timestamp:
- Nov 13, 2016, 10:23:59 AM (10 years ago)
- Location:
- branches/czw_branch/20160809/Ohana/src/relastro
- Files:
-
- 4 edited
-
include/relastro.h (modified) (1 diff)
-
src/UpdateMeasures.c (modified) (1 diff)
-
src/UpdateObjectOffsets.c (modified) (2 diffs)
-
src/args.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Ohana/src/relastro/include/relastro.h
r39794 r39811 376 376 int SKIP_CFH; 377 377 378 int UPDATE_PS1_STACK_MEASURE; 378 379 int UPDATE_PS1_CHIP_MEASURE; 379 380 int UPDATE_HSC_MEASURE; -
branches/czw_branch/20160809/Ohana/src/relastro/src/UpdateMeasures.c
r39731 r39811 115 115 116 116 // only modify the chip coordinates 117 if (UPDATE_PS1_STACK_MEASURE && isGPC1stack (measureT->photcode)) { 118 measureT->R = R; 119 measureT->D = D; 120 if (measureB) { 121 measureB->R = R; 122 measureB->D = D; 123 } 124 } 125 // only modify the chip coordinates 117 126 if (UPDATE_PS1_CHIP_MEASURE && isGPC1chip (measureT->photcode)) { 118 127 measureT->R = R; -
branches/czw_branch/20160809/Ohana/src/relastro/src/UpdateObjectOffsets.c
r39765 r39811 208 208 if (CHECK_MEASURE_TO_IMAGE) strextend (&command, "-check-measures"); 209 209 210 if (UPDATE_PS1_STACK_MEASURE) strextend (&command, "-update-ps1-stack"); 210 211 if (UPDATE_PS1_CHIP_MEASURE) strextend (&command, "-update-ps1-chip"); 211 212 if (UPDATE_HSC_MEASURE) strextend (&command, "-update-hsc"); … … 346 347 if (CHECK_MEASURE_TO_IMAGE) strextend (&command, "-check-measures"); 347 348 349 if (UPDATE_PS1_STACK_MEASURE) strextend (&command, "-update-ps1-stack"); 348 350 if (UPDATE_PS1_CHIP_MEASURE) strextend (&command, "-update-ps1-chip"); 349 351 if (UPDATE_HSC_MEASURE) strextend (&command, "-update-hsc"); -
branches/czw_branch/20160809/Ohana/src/relastro/src/args.c
r39794 r39811 158 158 } 159 159 160 UPDATE_PS1_STACK_MEASURE = FALSE; 161 if ((N = get_argument (argc, argv, "-update-ps1-stack"))) { 162 remove_argument (N, &argc, argv); 163 UPDATE_PS1_STACK_MEASURE = TRUE; 164 } 160 165 UPDATE_PS1_CHIP_MEASURE = FALSE; 161 166 if ((N = get_argument (argc, argv, "-update-ps1-chip"))) { … … 174 179 } 175 180 if (RELASTRO_OP == OP_UPDATE_OFFSETS) { 176 if (!UPDATE_PS1_ CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {177 fprintf (stderr, "for -update-offsets, need to select at least one of -update-ps1- chip, -update-hsc, -update-cfh\n");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"); 178 183 exit (2); 179 184 } 180 185 } 181 186 if ((RELASTRO_OP == OP_PARALLEL_IMAGES) || (RELASTRO_OP == OP_IMAGES)) { 182 if (APPLY_OFFSETS && !UPDATE_PS1_ CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {183 fprintf (stderr, "for [-images or -parallel-images] with -apply-offsets, need to select at least one of -update-ps1- chip, -update-hsc, -update-cfh\n");187 if (APPLY_OFFSETS && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) { 188 fprintf (stderr, "for [-images or -parallel-images] with -apply-offsets, need to select at least one of -update-ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n"); 184 189 exit (2); 185 190 } … … 879 884 } 880 885 886 UPDATE_PS1_STACK_MEASURE = FALSE; 887 if ((N = get_argument (argc, argv, "-update-ps1-stack"))) { 888 remove_argument (N, &argc, argv); 889 UPDATE_PS1_STACK_MEASURE = TRUE; 890 } 881 891 UPDATE_PS1_CHIP_MEASURE = FALSE; 882 892 if ((N = get_argument (argc, argv, "-update-ps1-chip"))) { … … 895 905 } 896 906 if (RELASTRO_OP == OP_UPDATE_OFFSETS) { 897 if (!UPDATE_PS1_ CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {898 fprintf (stderr, "for -update-offsets, need to select at least one of -update-ps1- chip, -update-hsc, -update-cfh\n");907 if (!UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) { 908 fprintf (stderr, "for -update-offsets, need to select at least one of -update-ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n"); 899 909 exit (2); 900 910 }
Note:
See TracChangeset
for help on using the changeset viewer.
