- Timestamp:
- Jun 27, 2018, 3:20:35 PM (8 years ago)
- Location:
- branches/czw_branch/20170908/Ohana
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/relastro/src (modified) (1 prop)
-
src/relastro/src/args.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20170908/Ohana
- Property svn:mergeinfo changed
-
branches/czw_branch/20170908/Ohana/src/relastro/src
- Property svn:mergeinfo changed
/branches/eam_branches/ohana.20170822/src/relastro/src (added) merged: 40212,40220,40223,40244 /trunk/Ohana/src/relastro/src (added) merged: 40291,40382,40405,40414-40415,40464
- Property svn:mergeinfo changed
-
branches/czw_branch/20170908/Ohana/src/relastro/src/args.c
r39926 r40477 68 68 } 69 69 70 // the default is to only measure the scatter for the stacks, not to perform a new fit 71 FIT_STACKS = FALSE; 72 if ((N = get_argument (argc, argv, "-fit-stacks"))) { 73 remove_argument (N, &argc, argv); 74 FIT_STACKS = TRUE; 75 } 76 70 77 REPAIR_STACKS = FALSE; 71 78 if ((N = get_argument (argc, argv, "-repair-stacks-on-update"))) { … … 86 93 } 87 94 95 // only update the fit statistics (systematic floor) 96 IMSTATS_ONLY = FALSE; 97 if ((N = get_argument (argc, argv, "-imstats-only"))) { 98 remove_argument (N, &argc, argv); 99 IMSTATS_ONLY = TRUE; 100 } 101 88 102 // elements needed for parallel regions / parallel images 89 103 MANUAL_UNIQUER = NULL; … … 158 172 } 159 173 174 UPDATE_ALL_MEASURE = FALSE; 175 if ((N = get_argument (argc, argv, "-update-all-cameras"))) { 176 remove_argument (N, &argc, argv); 177 UPDATE_ALL_MEASURE = TRUE; 178 } 160 179 UPDATE_PS1_STACK_MEASURE = FALSE; 161 180 if ((N = get_argument (argc, argv, "-update-ps1-stack"))) { … … 179 198 } 180 199 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");200 if (!UPDATE_ALL_MEASURE && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) { 201 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 202 exit (2); 184 203 } 185 204 } 186 if ((RELASTRO_OP == OP_PARALLEL_IMAGES) || (RELASTRO_OP == OP_IMAGES)) { 187 if (APPLY_OFFSETS && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) { 205 if (RELASTRO_OP == OP_UPDATE_OBJECTS) { 206 if (!UPDATE_ALL_MEASURE && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) { 207 fprintf (stderr, "for -update-objects, need to select at least one of -update-all-cameras, -update-ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n"); 208 exit (2); 209 } 210 } 211 if ((RELASTRO_OP == OP_PARALLEL_REGIONS) || (RELASTRO_OP == OP_PARALLEL_IMAGES) || (RELASTRO_OP == OP_IMAGES)) { 212 if (APPLY_OFFSETS && !UPDATE_ALL_MEASURE && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) { 188 213 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"); 189 214 exit (2); … … 300 325 remove_argument (N, &argc, argv); 301 326 FIT_TARGET = SET_CHIPS; 327 } 328 if ((N = get_argument (argc, argv, "-set-stacks"))) { 329 remove_argument (N, &argc, argv); 330 FIT_TARGET = SET_STACKS; 302 331 } 303 332 … … 858 887 } 859 888 889 // the default is to only measure the scatter for the stacks, not to perform a new fit 890 FIT_STACKS = FALSE; 891 if ((N = get_argument (argc, argv, "-fit-stacks"))) { 892 remove_argument (N, &argc, argv); 893 FIT_STACKS = TRUE; 894 } 895 860 896 REPAIR_STACKS = FALSE; 861 897 if ((N = get_argument (argc, argv, "-repair-stacks-on-update"))) { … … 869 905 } 870 906 907 // only update the fit statistics (systematic floor) 908 IMSTATS_ONLY = FALSE; 909 if ((N = get_argument (argc, argv, "-imstats-only"))) { 910 remove_argument (N, &argc, argv); 911 IMSTATS_ONLY = TRUE; 912 } 913 871 914 SKIP_PS1_CHIP = FALSE; 872 915 if ((N = get_argument (argc, argv, "-skip-ps1-chip"))) { … … 890 933 } 891 934 935 UPDATE_ALL_MEASURE = FALSE; 936 if ((N = get_argument (argc, argv, "-update-all-cameras"))) { 937 remove_argument (N, &argc, argv); 938 UPDATE_ALL_MEASURE = TRUE; 939 } 892 940 UPDATE_PS1_STACK_MEASURE = FALSE; 893 941 if ((N = get_argument (argc, argv, "-update-ps1-stack"))) { … … 911 959 } 912 960 if (RELASTRO_OP == OP_UPDATE_OFFSETS) { 913 if (!UPDATE_ PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {961 if (!UPDATE_ALL_MEASURE && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) { 914 962 fprintf (stderr, "for -update-offsets, need to select at least one of -update-ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n"); 915 963 exit (2);
Note:
See TracChangeset
for help on using the changeset viewer.
