IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4606


Ignore:
Timestamp:
Jul 24, 2005, 8:31:04 PM (21 years ago)
Author:
eugene
Message:

cleanup for photometry concepts

Location:
trunk/Ohana/src/opihi
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/avextract.c

    r4585 r4606  
    4747    }
    4848  }
    49   if (!TestPhotSelections (&code, param)) goto escape;
     49  if (!TestPhotSelections (&code, &mode, param)) goto escape;
    5050
    5151  /* load region corresponding to selection above */
  • trunk/Ohana/src/opihi/dvo/calmextract.c

    r4585 r4606  
    4040  if (!GetPhotcodeInfo (argv[1], &code[0], &mode[0])) goto usage;
    4141  if (!GetPhotcodeInfo (argv[3], &code[1], &mode[1])) goto usage;
    42   if (!TestPhotSelections (&code[0], MEAS_ZERO)) goto escape;
     42  if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape;
    4343
    4444  /* returned vectors are dmag, mag, color, time, airmass, ra, dec, x, y, exptime */
  • trunk/Ohana/src/opihi/dvo/ccd.c

    r4585 r4606  
    4343  if (!GetPhotcodeInfo (argv[5], &code[2], &mode[2])) return (FALSE);
    4444  if (!GetPhotcodeInfo (argv[7], &code[3], &mode[3])) return (FALSE);
    45   if (!TestPhotSelections (&code[0], MEAS_ZERO)) goto escape;
     45  if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape;
    4646
    4747  /* load region corresponding to selection above */
  • trunk/Ohana/src/opihi/dvo/cmd.c

    r4585 r4606  
    4141  if (!GetPhotcodeInfo (argv[3], &code[1], &mode[1])) return (FALSE);
    4242  if (!GetPhotcodeInfo (argv[5], &code[2], &mode[2])) return (FALSE);
    43   if (!TestPhotSelections (&code[0], MEAS_ZERO)) goto escape;
     43  if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape;
    4444
    4545  /* load region corresponding to selection above */
  • trunk/Ohana/src/opihi/dvo/ddmags.c

    r4585 r4606  
    4343  if (!GetPhotcodeInfo (argv[5], &code[2], &mode[2])) return (FALSE);
    4444  if (!GetPhotcodeInfo (argv[7], &code[3], &mode[3])) return (FALSE);
    45   if (!TestPhotSelections (&code[0], MEAS_ZERO)) goto escape;
     45  if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape;
    4646
    4747  /* load region corresponding to selection above */
  • trunk/Ohana/src/opihi/dvo/dmagaves.c

    r4585 r4606  
    4040  if (!GetPhotcodeInfo (argv[3], &code[1], &mode[1])) goto usage;
    4141  if ((param = GetAverageParam (argv[5])) == AVE_ZERO) goto usage;
    42   if (!TestPhotSelections (&code[2], param)) goto escape;
     42  if (!TestPhotSelections (&code[2], &mode[2], param)) goto escape;
    4343
    4444  /* load region corresponding to selection above */
  • trunk/Ohana/src/opihi/dvo/dmagmeas.c

    r4588 r4606  
    4141  if (!GetPhotcodeInfo (argv[3], &code[1], &mode[1])) goto usage;
    4242  if ((param = GetMeasureParam (argv[5])) == MEAS_ZERO) goto usage;
    43   if (!TestPhotSelections (&code[2], MEAS_ZERO)) goto escape;
     43  if (!TestPhotSelections (&code[2], &mode[2], MEAS_ZERO)) goto escape;
    4444
    4545  /* load region corresponding to selection above */
  • trunk/Ohana/src/opihi/dvo/mextract.c

    r4585 r4606  
    4848    }
    4949  }
    50   if (!TestPhotSelections (&code, MEAS_ZERO)) goto escape;
     50  if (!TestPhotSelections (&code, &mode, MEAS_ZERO)) goto escape;
    5151
    5252  /* load region corresponding to selection above */
  • trunk/Ohana/src/opihi/dvo/photometry.c

    r4587 r4606  
    6363static int PhotcodeSelect;
    6464static PhotCode *PhotcodeValue;
     65static int PhotcodeMode;
    6566
    6667/* selections based on Average quantities */
     
    247248
    248249/* I've set some selections - if these require a photcode, check if I set one */
    249 int TestPhotSelections (PhotCode **code, int param) {
     250int TestPhotSelections (PhotCode **code, int *mode, int param) {
    250251
    251252  int NeedPhotcode;
     
    281282    if (!PhotcodeSelect) return (FALSE);
    282283    code[0] = PhotcodeValue;
     284    mode[0] = PhotcodeMode;
    283285    if (code[0][0].type == PHOT_DEP) return (FALSE);
    284286    if (code[0][0].type == PHOT_REF) return (FALSE);
     
    386388    PhotcodeSelect = TRUE;
    387389    remove_argument (N, argc, argv);
    388     PhotcodeValue = GetPhotcodebyName (argv[N]);
     390    GetPhotcodeInfo (argv[N], &PhotcodeValue, &PhotcodeMode);
    389391    if (PhotcodeValue == NULL) {
    390392      fprintf (stderr, "photcode not found in photcode table\n");
  • trunk/Ohana/src/opihi/include/dvo1.h

    r4585 r4606  
    6767int           SetSelectionParam     PROTO((int param));
    6868int           TestAverage           PROTO((PhotCode *code, Average *average, SecFilt *secfilt, Measure *measure));
    69 int           TestPhotSelections    PROTO((PhotCode **code, int param));
     69int           TestPhotSelections    PROTO((PhotCode **code, int *mode, int param));
    7070void          print_value           PROTO((FILE *f, double value, short int ival));
    7171
Note: See TracChangeset for help on using the changeset viewer.