IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2008, 11:06:10 AM (18 years ago)
Author:
eugene
Message:

adding additional selection constraints to -processedexp

File:
1 edited

Legend:

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

    r17574 r17584  
    774774    }
    775775
     776    if (!config->where) {
     777        config->where = psMetadataAlloc();
     778    }
     779
     780    // XX test this out; need to make this consistent with the list in regtoolConfig.c
     781    PXOPT_COPY_STR(config->args, config->where,  "-exp_id", "exp_id", "==");
     782    PXOPT_COPY_STR(config->args, config->where,  "-exp_name", "exp_name", "==");
     783    PXOPT_COPY_STR(config->args, config->where,  "-inst", "camera", "==");
     784    PXOPT_COPY_STR(config->args, config->where,  "-telescope", "telescope", "==");
     785    PXOPT_COPY_TIME(config->args, config->where, "-dateobs_begin", "dateobs", ">=");
     786    PXOPT_COPY_TIME(config->args, config->where, "-dateobs_end", "dateobs", "<=");
     787    PXOPT_COPY_STR(config->args, config->where,  "-exp_tag", "exp_tag", "==");
     788    PXOPT_COPY_STR(config->args, config->where,  "-exp_type", "exp_type", "==");
     789    PXOPT_COPY_STR(config->args, config->where,  "-filelevel", "filelevel", "==");
     790    PXOPT_COPY_STR(config->args, config->where,  "-reduction", "reduction", "==");
     791    PXOPT_COPY_STR(config->args, config->where,  "-filter", "filter", "==");
     792    PXOPT_COPY_F64(config->args, config->where,  "-airmass_min", "airmass", ">=");
     793    PXOPT_COPY_F64(config->args, config->where,  "-airmass_max", "airmass", "<");
     794    PXOPT_COPY_F64(config->args, config->where,  "-ra_min", "ra", ">=");
     795    PXOPT_COPY_F64(config->args, config->where,  "-ra_max", "ra", "<");
     796    PXOPT_COPY_F64(config->args, config->where,  "-decl_min", "decl", ">=");
     797    PXOPT_COPY_F64(config->args, config->where,  "-decl_max", "decl", "<");
     798    PXOPT_COPY_F32(config->args, config->where,  "-exp_time_min", "exp_time", ">=");
     799    PXOPT_COPY_F32(config->args, config->where,  "-exp_time_max", "exp_time", "<");
     800    PXOPT_COPY_F32(config->args, config->where,  "-sat_pixel_frac_min", "sat_pixel_frac", ">=");
     801    PXOPT_COPY_F32(config->args, config->where,  "-sat_pixel_frac_max", "sat_pixel_frac", "<");
     802    PXOPT_COPY_F64(config->args, config->where,  "-bg_min", "bg", ">=");
     803    PXOPT_COPY_F64(config->args, config->where,  "-bg_max", "bg", "<");
     804    PXOPT_COPY_F64(config->args, config->where,  "-bg_stdev_min", "bg_stdev", ">=");
     805    PXOPT_COPY_F64(config->args, config->where,  "-bg_stdev_max", "bg_stdev", "<");
     806    PXOPT_COPY_F64(config->args, config->where,  "-bg_mean_stdev_min", "bg_mean_stdev", ">=");
     807    PXOPT_COPY_F64(config->args, config->where,  "-bg_mean_stdev_max", "bg_mean_stdev", "<");
     808    PXOPT_COPY_F64(config->args, config->where,  "-alt_min", "alt", ">=");
     809    PXOPT_COPY_F64(config->args, config->where,  "-alt_max", "alt", "<");
     810    PXOPT_COPY_F64(config->args, config->where,  "-az_min", "az", ">=");
     811    PXOPT_COPY_F64(config->args, config->where,  "-az_max", "az", "<");
     812    PXOPT_COPY_F32(config->args, config->where,  "-ccd_temp_min", "ccd_temp", ">=");
     813    PXOPT_COPY_F32(config->args, config->where,  "-ccd_temp_max", "ccd_temp", "<");
     814    PXOPT_COPY_F64(config->args, config->where,  "-posang_min", "posang", ">=");
     815    PXOPT_COPY_F64(config->args, config->where,  "-posang_max", "posang", "<");
     816    PXOPT_COPY_STR(config->args, config->where,  "-object", "object", "==");
     817    PXOPT_COPY_F32(config->args, config->where,  "-solang_min", "solang", ">=");
     818    PXOPT_COPY_F32(config->args, config->where,  "-solang_max", "solang", "<");
     819
     820    // XXX where does config->where get set??
    776821    if (config->where) {
    777822        psString whereClause = psDBGenerateWhereConditionSQL(config->where, "rawExp");
Note: See TracChangeset for help on using the changeset viewer.