IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 27, 2018, 3:20:35 PM (8 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/czw_branch/20170908/Ohana
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20170908/Ohana

  • branches/czw_branch/20170908/Ohana/src/relastro/src

  • branches/czw_branch/20170908/Ohana/src/relastro/src/args.c

    r39926 r40477  
    6868  }
    6969
     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
    7077  REPAIR_STACKS = FALSE;
    7178  if ((N = get_argument (argc, argv, "-repair-stacks-on-update"))) {
     
    8693  }
    8794
     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
    88102  // elements needed for parallel regions / parallel images
    89103  MANUAL_UNIQUER = NULL;
     
    158172  }
    159173
     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  }
    160179  UPDATE_PS1_STACK_MEASURE = FALSE;
    161180  if ((N = get_argument (argc, argv, "-update-ps1-stack"))) {
     
    179198  }
    180199  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");
    183202      exit (2);
    184203    }
    185204  }
    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) {
    188213      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");
    189214      exit (2);
     
    300325    remove_argument (N, &argc, argv);
    301326    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;
    302331  }
    303332
     
    858887  }
    859888
     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
    860896  REPAIR_STACKS = FALSE;
    861897  if ((N = get_argument (argc, argv, "-repair-stacks-on-update"))) {
     
    869905  }
    870906
     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
    871914  SKIP_PS1_CHIP = FALSE;
    872915  if ((N = get_argument (argc, argv, "-skip-ps1-chip"))) {
     
    890933  }
    891934
     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  }
    892940  UPDATE_PS1_STACK_MEASURE = FALSE;
    893941  if ((N = get_argument (argc, argv, "-update-ps1-stack"))) {
     
    911959  }
    912960  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) {
    914962      fprintf (stderr, "for -update-offsets, need to select at least one of -update-ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n");
    915963      exit (2);
Note: See TracChangeset for help on using the changeset viewer.