IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11099


Ignore:
Timestamp:
Jan 15, 2007, 11:57:05 AM (19 years ago)
Author:
eugene
Message:

added notes re constraints, added -filter constraint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/detselect.c

    r11075 r11099  
    116116    }
    117117
     118    // XXX need to place in here the range constraints for range-based values:
     119    // use_begin    < time     < use_end
     120    // airmass_min  < airmass  < airmass_max
     121    // ccd_temp_min < ccd_temp < ccd_temp_max
     122    // exp_time_min < exp_time < exp_time_max
     123
    118124    {
    119125        psString str = NULL;
     
    121127        if ((str = psMetadataLookupStr(&status, config->args, "-det_type"))) {
    122128            psStringAppend(&query, " AND detRun.det_type = '%s'", str);
     129        }
     130    }
     131
     132    {
     133        psString str = NULL;
     134        bool status = false;
     135        if ((str = psMetadataLookupStr(&status, config->args, "-filter"))) {
     136            psStringAppend(&query, " AND detRun.filter = '%s'", str);
    123137        }
    124138    }
Note: See TracChangeset for help on using the changeset viewer.