IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

cleanup for photometry concepts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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");
Note: See TracChangeset for help on using the changeset viewer.