IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2017, 12:49:08 PM (9 years ago)
Author:
eugene
Message:

add option for all cameras

Location:
branches/eam_branches/ohana.20170822/src/relastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20170822/src/relastro/src/UpdateMeasures.c

    r39926 r40220  
    114114      }
    115115
     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      }
    116128      // only modify the chip coordinates
    117129      if (UPDATE_PS1_STACK_MEASURE && isGPC1stack (measureT->photcode)) {
     
    122134          measureB->D = D;
    123135        }
     136        goto set_measure_done;
    124137      }
    125138      // only modify the chip coordinates
     
    131144          measureB->D = D;
    132145        }
    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:
    152169    }
    153170    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  
    158158  }
    159159
     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  }
    160165  UPDATE_PS1_STACK_MEASURE = FALSE;
    161166  if ((N = get_argument (argc, argv, "-update-ps1-stack"))) {
     
    179184  }
    180185  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");
    183188      exit (2);
    184189    }
Note: See TracChangeset for help on using the changeset viewer.