IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2009, 1:50:46 PM (17 years ago)
Author:
eugene
Message:

cleanup and fix use of pxcamGet/SetSearchArgs

File:
1 edited

Legend:

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

    r21402 r23590  
    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, "-reduction",          0, "search by reduction class", NULL);
    4544    psMetadataAddStr(md,  PS_LIST_TAIL, "-filter",             0, "search for filter", NULL);
    4645    psMetadataAddF64(md,  PS_LIST_TAIL, "-airmass_min",        0, "define min airmass", NAN);
     
    7776bool pxcamGetSearchArgs (pxConfig *config, psMetadata *where) {
    7877
    79     PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "==");
    80     PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "==");
    81     PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "==");
    82     PXOPT_COPY_STR(config->args, where, "-inst", "camera", "==");
    83     PXOPT_COPY_STR(config->args, where, "-telescope", "telescope", "==");
    84     PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs", ">=");
    85     PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<=");
    86     PXOPT_COPY_STR(config->args, where, "-exp_tag", "exp_tag", "==");
    87     PXOPT_COPY_STR(config->args, where, "-exp_type", "exp_type", "==");
    88     PXOPT_COPY_STR(config->args, where, "-comment", "rawExp.comment", "LIKE");
    89     PXOPT_COPY_STR(config->args, where, "-filelevel", "filelevel", "==");
    90     PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "==");
    91     PXOPT_COPY_STR(config->args, where, "-filter", "filter", "==");
    92     PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">=");
    93     PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<");
    94     PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">=");
    95     PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<");
    96     PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">=");
    97     PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<");
    98     PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">=");
    99     PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<");
    100     PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_min", "sat_pixel_frac", ">=");
    101     PXOPT_COPY_F32(config->args, where, "-sat_pixel_frac_max", "sat_pixel_frac", "<");
    102     PXOPT_COPY_F64(config->args, where, "-bg_min", "bt", ">=");
    103     PXOPT_COPY_F64(config->args, where, "-bg_max", "bt", "<");
    104     PXOPT_COPY_F64(config->args, where, "-bg_stdev_min", "bg_stdev", ">=");
    105     PXOPT_COPY_F64(config->args, where, "-bg_stdev_max", "bg_stdev", "<");
    106     PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_min", "bg_mean_stdev", ">=");
    107     PXOPT_COPY_F64(config->args, where, "-bg_mean_stdev_max", "bg_mean_stdev", "<");
    108     PXOPT_COPY_F64(config->args, where, "-alt_min", "alt", ">=");
    109     PXOPT_COPY_F64(config->args, where, "-alt_max", "alt", "<");
    110     PXOPT_COPY_F64(config->args, where, "-az_min", "az", ">=");
    111     PXOPT_COPY_F64(config->args, where, "-az_max", "az", "<");
    112     PXOPT_COPY_F32(config->args, where, "-ccd_temp_min", "ccd_temp", ">=");
    113     PXOPT_COPY_F32(config->args, where, "-ccd_temp_max", "ccd_temp", "<");
    114     PXOPT_COPY_F64(config->args, where, "-posang_min", "posang", ">=");
    115     PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<");
    116     PXOPT_COPY_STR(config->args, where, "-object", "object", "==");
    117     PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">=");
    118     PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<");
     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",         "==");
     90    PXOPT_COPY_F64(config->args,  where, "-airmass_min",        "rawExp.airmass",        ">=");
     91    PXOPT_COPY_F64(config->args,  where, "-airmass_max",        "rawExp.airmass",        "<");
     92    PXOPT_COPY_F64(config->args,  where, "-ra_min",             "rawExp.ra",             ">=");
     93    PXOPT_COPY_F64(config->args,  where, "-ra_max",             "rawExp.ra",             "<");
     94    PXOPT_COPY_F64(config->args,  where, "-decl_min",           "rawExp.decl",           ">=");
     95    PXOPT_COPY_F64(config->args,  where, "-decl_max",           "rawExp.decl",           "<");
     96    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",       "<");
     98    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", "<");
     100    PXOPT_COPY_F64(config->args,  where, "-bg_min",             "rawExp.bg",             ">=");
     101    PXOPT_COPY_F64(config->args,  where, "-bg_max",             "rawExp.bg",             "<");
     102    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",       "<");
     104    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",  "<");
     106    PXOPT_COPY_F64(config->args,  where, "-alt_min",            "rawExp.alt",            ">=");
     107    PXOPT_COPY_F64(config->args,  where, "-alt_max",            "rawExp.alt",            "<");
     108    PXOPT_COPY_F64(config->args,  where, "-az_min",             "rawExp.az",             ">=");
     109    PXOPT_COPY_F64(config->args,  where, "-az_max",             "rawExp.az",             "<");
     110    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",       "<");
     112    PXOPT_COPY_F64(config->args,  where, "-posang_min",         "rawExp.posang",         ">=");
     113    PXOPT_COPY_F64(config->args,  where, "-posang_max",         "rawExp.posang",         "<");
     114    PXOPT_COPY_STR(config->args,  where, "-object",             "rawExp.object",         "==");
     115    PXOPT_COPY_F32(config->args,  where, "-solang_min",         "rawExp.solang",         ">=");
     116    PXOPT_COPY_F32(config->args,  where, "-solang_max",         "rawExp.solang",         "<");
    119117
    120118    return true;
Note: See TracChangeset for help on using the changeset viewer.