IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16572


Ignore:
Timestamp:
Feb 21, 2008, 2:15:21 PM (18 years ago)
Author:
eugene
Message:

adding various additional fields as options to -runs

Location:
branches/eam_branch_20080219/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080219/ippTools/src/dettool.c

    r16504 r16572  
    10121012    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    10131013
     1014    PXOPT_COPY_STR(config->args, config->where, "-inst", "camera", "==");
     1015    PXOPT_COPY_STR(config->args, config->where, "-telescope", "telescope", "==");
     1016    PXOPT_COPY_STR(config->args, config->where, "-filter", "filter", "==");
     1017
     1018    // airmass_min  < airmass  < airmass_max
     1019    PXOPT_COPY_F32(config->args, config->where, "-airmass", "airmass_min", "<=");
     1020    PXOPT_COPY_F32(config->args, config->where, "-airmass", "airmass_max", ">=");
     1021
     1022    // exp_time_min < exp_time < exp_time_max
     1023    PXOPT_COPY_F32(config->args, config->where, "-exp_time", "exp_time_min", "<=");
     1024    PXOPT_COPY_F32(config->args, config->where, "-exp_time", "exp_time_max", ">=");
     1025
     1026    // ccd_temp_min < ccd_temp < ccd_temp_max
     1027    PXOPT_COPY_F32(config->args, config->where, "-ccd_temp", "ccd_temp_min", "<=");
     1028    PXOPT_COPY_F32(config->args, config->where, "-ccd_temp", "ccd_temp_max", ">=");
     1029
     1030    PXOPT_COPY_F64(config->args, config->where, "-posang", "posang_min", "<=");
     1031    PXOPT_COPY_F64(config->args, config->where, "-posang", "posang_max", ">=");
     1032
    10141033    // XXX fix the hard coding of the table name
    10151034    psArray *runs = psDBSelectRows(config->dbh, "detRun", config->where, 0);
  • branches/eam_branch_20080219/ippTools/src/dettoolConfig.c

    r16170 r16572  
    327327            "search for detrend ID", NULL);
    328328
     329    psMetadataAddStr(runsArgs, PS_LIST_TAIL, "-inst", 0,
     330            "search for camera (instrument)", NULL);
     331    psMetadataAddStr(runsArgs, PS_LIST_TAIL, "-telescope", 0,
     332            "search for telescope", NULL);
     333    psMetadataAddStr(runsArgs, PS_LIST_TAIL, "-filter", 0,
     334            "search for filter", NULL);
     335
     336    psMetadataAddF32(runsArgs, PS_LIST_TAIL, "-airmass", 0,
     337            "match airmass", NAN);
     338    psMetadataAddF32(runsArgs, PS_LIST_TAIL, "-exp_time", 0,
     339            "match exp time", NAN);
     340    psMetadataAddF32(runsArgs, PS_LIST_TAIL, "-ccd_temp", 0,
     341            "match ccd temp", NAN);
     342    psMetadataAddF64(runsArgs, PS_LIST_TAIL, "-posang", 0,
     343            "match posang", NAN);
     344
    329345    // -childlessrun
    330346    psMetadata *childlessrunArgs = psMetadataAlloc();
Note: See TracChangeset for help on using the changeset viewer.