IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 23, 2019, 5:23:45 PM (7 years ago)
Author:
cclin33
Message:

temporary fix filter queuing problem in addtool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ccl_branches/ipponly-20191108/ippTools/src/pxcam.c

    r41072 r41212  
    4242    psMetadataAddStr(md,  PS_LIST_TAIL, "-comment",            0, "search by comment", NULL);
    4343    psMetadataAddStr(md,  PS_LIST_TAIL, "-filelevel",          0, "search by filelevel", NULL);
    44     psMetadataAddStr(md,  PS_LIST_TAIL, "-filter",             0, "search for filter", NULL);
     44//    psMetadataAddStr(md,  PS_LIST_TAIL, "-filter",             0, "search for filter", NULL);
    4545    psMetadataAddF64(md,  PS_LIST_TAIL, "-airmass_min",        0, "define min airmass", NAN);
    4646    psMetadataAddF64(md,  PS_LIST_TAIL, "-airmass_max",        0, "define max airmass", NAN);
     
    7676bool pxcamGetSearchArgs (pxConfig *config, psMetadata *where) {
    7777
    78     PXOPT_COPY_S64(config->args,   where, "-chip_id",            "chipRun.chip_id",      "==");
    79     PXOPT_COPY_S64(config->args,   where, "-exp_id",             "rawExp.exp_id",        "==");
    80     PXOPT_COPY_STR(config->args,   where, "-exp_name",           "rawExp.exp_name",      "==");
    81     PXOPT_COPY_STR(config->args,   where, "-inst",               "rawExp.camera",        "==");
    82     PXOPT_COPY_STR(config->args,   where, "-telescope",          "rawExp.telescope",     "==");
    83     PXOPT_COPY_TIME(config->args,  where, "-dateobs_begin",      "rawExp.dateobs",       ">=");
    84     PXOPT_COPY_TIME(config->args,  where, "-dateobs_end",        "rawExp.dateobs",       "<=");
    85     PXOPT_COPY_STR(config->args,   where, "-exp_tag",            "rawExp.exp_tag",       "==");
    86     PXOPT_COPY_STR(config->args,   where, "-exp_type",           "rawExp.exp_type",      "==");
    87     PXOPT_COPY_STR(config->args,   where, "-comment",            "rawExp.comment",       "LIKE");
    88     PXOPT_COPY_STR(config->args,   where, "-filelevel",          "rawExp.filelevel",     "==");
    89     PXOPT_COPY_STR(config->args,   where, "-filter",             "rawExp.filter",         "LIKE");
     78    PXOPT_COPY_S64(config->args,   where, "-chip_id",            "chipRun.chip_id",       "==");
     79    PXOPT_COPY_S64(config->args,   where, "-exp_id",             "rawExp.exp_id",         "==");
     80    PXOPT_COPY_STR(config->args,   where, "-exp_name",           "rawExp.exp_name",       "==");
     81    PXOPT_COPY_STR(config->args,   where, "-inst",               "rawExp.camera",         "==");
     82    PXOPT_COPY_STR(config->args,   where, "-telescope",          "rawExp.telescope",      "==");
     83    PXOPT_COPY_TIME(config->args,  where, "-dateobs_begin",      "rawExp.dateobs",        ">=");
     84    PXOPT_COPY_TIME(config->args,  where, "-dateobs_end",        "rawExp.dateobs",        "<=");
     85    PXOPT_COPY_STR(config->args,   where, "-exp_tag",            "rawExp.exp_tag",        "==");
     86    PXOPT_COPY_STR(config->args,   where, "-exp_type",           "rawExp.exp_type",       "==");
     87    PXOPT_COPY_STR(config->args,   where, "-comment",            "rawExp.comment",      "LIKE");
     88    PXOPT_COPY_STR(config->args,   where, "-filelevel",          "rawExp.filelevel",      "==");
     89//    PXOPT_COPY_STR(config->args,   where, "-filter",             "rawExp.filter",       "LIKE");
    9090    PXOPT_COPY_F64(config->args,   where, "-airmass_min",        "rawExp.airmass",        ">=");
    91     PXOPT_COPY_F64(config->args,   where, "-airmass_max",        "rawExp.airmass",        "<");
     91    PXOPT_COPY_F64(config->args,   where, "-airmass_max",        "rawExp.airmass",         "<");
    9292    PXOPT_COPY_RADEC(config->args, where, "-ra_min",             "rawExp.ra",             ">=");
    93     PXOPT_COPY_RADEC(config->args, where, "-ra_max",             "rawExp.ra",             "<");
     93    PXOPT_COPY_RADEC(config->args, where, "-ra_max",             "rawExp.ra",              "<");
    9494    PXOPT_COPY_RADEC(config->args, where, "-decl_min",           "rawExp.decl",           ">=");
    95     PXOPT_COPY_RADEC(config->args, where, "-decl_max",           "rawExp.decl",           "<");
     95    PXOPT_COPY_RADEC(config->args, where, "-decl_max",           "rawExp.decl",            "<");
    9696    PXOPT_COPY_F32(config->args,   where, "-exp_time_min",       "rawExp.exp_time",       ">=");
    97     PXOPT_COPY_F32(config->args,   where, "-exp_time_max",       "rawExp.exp_time",       "<");
     97    PXOPT_COPY_F32(config->args,   where, "-exp_time_max",       "rawExp.exp_time",        "<");
    9898    PXOPT_COPY_F32(config->args,   where, "-sat_pixel_frac_min", "rawExp.sat_pixel_frac", ">=");
    99     PXOPT_COPY_F32(config->args,   where, "-sat_pixel_frac_max", "rawExp.sat_pixel_frac", "<");
     99    PXOPT_COPY_F32(config->args,   where, "-sat_pixel_frac_max", "rawExp.sat_pixel_frac",  "<");
    100100    PXOPT_COPY_F64(config->args,   where, "-bg_min",             "rawExp.bg",             ">=");
    101     PXOPT_COPY_F64(config->args,   where, "-bg_max",             "rawExp.bg",             "<");
     101    PXOPT_COPY_F64(config->args,   where, "-bg_max",             "rawExp.bg",              "<");
    102102    PXOPT_COPY_F64(config->args,   where, "-bg_stdev_min",       "rawExp.bg_stdev",       ">=");
    103     PXOPT_COPY_F64(config->args,   where, "-bg_stdev_max",       "rawExp.bg_stdev",       "<");
     103    PXOPT_COPY_F64(config->args,   where, "-bg_stdev_max",       "rawExp.bg_stdev",        "<");
    104104    PXOPT_COPY_F64(config->args,   where, "-bg_mean_stdev_min",  "rawExp.bg_mean_stdev",  ">=");
    105     PXOPT_COPY_F64(config->args,   where, "-bg_mean_stdev_max",  "rawExp.bg_mean_stdev",  "<");
     105    PXOPT_COPY_F64(config->args,   where, "-bg_mean_stdev_max",  "rawExp.bg_mean_stdev",   "<");
    106106    PXOPT_COPY_F64(config->args,   where, "-alt_min",            "rawExp.alt",            ">=");
    107     PXOPT_COPY_F64(config->args,   where, "-alt_max",            "rawExp.alt",            "<");
     107    PXOPT_COPY_F64(config->args,   where, "-alt_max",            "rawExp.alt",             "<");
    108108    PXOPT_COPY_F64(config->args,   where, "-az_min",             "rawExp.az",             ">=");
    109     PXOPT_COPY_F64(config->args,   where, "-az_max",             "rawExp.az",             "<");
     109    PXOPT_COPY_F64(config->args,   where, "-az_max",             "rawExp.az",              "<");
    110110    PXOPT_COPY_F32(config->args,   where, "-ccd_temp_min",       "rawExp.ccd_temp",       ">=");
    111     PXOPT_COPY_F32(config->args,   where, "-ccd_temp_max",       "rawExp.ccd_temp",       "<");
     111    PXOPT_COPY_F32(config->args,   where, "-ccd_temp_max",       "rawExp.ccd_temp",        "<");
    112112    PXOPT_COPY_F64(config->args,   where, "-posang_min",         "rawExp.posang",         ">=");
    113     PXOPT_COPY_F64(config->args,   where, "-posang_max",         "rawExp.posang",         "<");
     113    PXOPT_COPY_F64(config->args,   where, "-posang_max",         "rawExp.posang",          "<");
    114114    PXOPT_COPY_STR(config->args,   where, "-object",             "rawExp.object",         "==");
    115     PXOPT_COPY_F32(config->args,   where, "-sun_angle_min",         "rawExp.sun_angle",         ">=");
    116     PXOPT_COPY_F32(config->args,   where, "-sun_angle_max",         "rawExp.sun_angle",         "<");
     115    PXOPT_COPY_F32(config->args,   where, "-sun_angle_min",         "rawExp.sun_angle",   ">=");
     116    PXOPT_COPY_F32(config->args,   where, "-sun_angle_max",         "rawExp.sun_angle",    "<");
    117117
    118118    return true;
Note: See TracChangeset for help on using the changeset viewer.