IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2009, 4:08:25 PM (17 years ago)
Author:
Paul Price
Message:

Merging trunk (r25026) to get up-to-date on old branch.

Location:
branches/pap
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/pap

  • branches/pap/ippTools/src

    • Property svn:ignore
      •  

        old new  
        3434disttool
        3535receivetool
         36
         37pubtool
  • branches/pap/ippTools/src/faketool.c

    r23921 r25027  
    134134    PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">=");
    135135    PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<");
    136     PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">=");
    137     PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<");
    138     PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">=");
    139     PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<");
     136    PXOPT_COPY_RADEC(config->args, where, "-ra_min", "ra", ">=");
     137    PXOPT_COPY_RADEC(config->args, where, "-ra_max", "ra", "<");
     138    PXOPT_COPY_RADEC(config->args, where, "-decl_min", "decl", ">=");
     139    PXOPT_COPY_RADEC(config->args, where, "-decl_max", "decl", "<");
    140140    PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">=");
    141141    PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<");
     
    157157    PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<");
    158158    PXOPT_COPY_STR(config->args, where, "-object", "object", "==");
    159     PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">=");
    160     PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<");
     159    PXOPT_COPY_F32(config->args, where, "-sun_angle_min", "sun_angle", ">=");
     160    PXOPT_COPY_F32(config->args, where, "-sun_angle_max", "sun_angle", "<");
    161161    PXOPT_COPY_STR(config->args, where, "-comment", "comment", "LIKE");
    162162
     
    235235        bool status;
    236236        char *end_stage = psMetadataLookupStr(&status, md, "end_stage");
    237         if (end_stage && strcasecmp(end_stage, "warp")) continue;
     237        if (end_stage && strcasecmp(end_stage, "warp")) continue;
    238238
    239239        char *raw_tess_id   = psMetadataLookupStr(&status, md, "tess_id");
    240         if (raw_tess_id || tess_id) continue;
     240        if (raw_tess_id || tess_id) continue;
    241241
    242242        char *label  = psMetadataLookupStr(&status, md, "label");
     
    244244
    245245        if (!status) {
    246             psError(PS_ERR_UNKNOWN, false, "cannot queue analysis to WARP without a defined tess id: label: %s, exp_id %" PRId64, label, exp_id);
     246            psError(PS_ERR_UNKNOWN, false, "cannot queue analysis to WARP without a defined tess id: label: %s, exp_id %" PRId64, label, exp_id);
    247247            psFree(output);
    248248            return false;
     
    302302    PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">=");
    303303    PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<");
    304     PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">=");
    305     PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<");
    306     PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">=");
    307     PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<");
     304    PXOPT_COPY_RADEC(config->args, where, "-ra_min", "ra", ">=");
     305    PXOPT_COPY_RADEC(config->args, where, "-ra_max", "ra", "<");
     306    PXOPT_COPY_RADEC(config->args, where, "-decl_min", "decl", ">=");
     307    PXOPT_COPY_RADEC(config->args, where, "-decl_max", "decl", "<");
    308308    PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">=");
    309309    PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<");
     
    325325    PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<");
    326326    PXOPT_COPY_STR(config->args, where, "-object", "object", "==");
    327     PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">=");
    328     PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<");
     327    PXOPT_COPY_F32(config->args, where, "-sun_angle_min", "sun_angle", ">=");
     328    PXOPT_COPY_F32(config->args, where, "-sun_angle_max", "sun_angle", "<");
    329329    PXOPT_COPY_STR(config->args, where, "-label", "fakeRun.label", "==");
    330330
     
    455455
    456456    if (where && psListLength(where->list)) {
    457         psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    458         psStringAppend(&query, " WHERE %s", whereClause);
     457        psString whereClause = psDBGenerateWhereConditionSQL(where, "fakeRun");
     458        psStringAppend(&query, " AND %s", whereClause);
    459459        psFree(whereClause);
    460460    }
     
    563563
    564564    psMetadata *where = psMetadataAlloc();
    565     PXOPT_COPY_S64(config->args, where, "-fake_id", "fakeRun.fake_id", "==");
     565    PXOPT_COPY_S64(config->args, where, "-fake_id", "fake_id", "==");
    566566    PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "==");
    567567    PXOPT_COPY_STR(config->args, where, "-class_id", "rawImfile.class_id", "==");
     
    632632
    633633    psMetadata *where = psMetadataAlloc();
     634    pxAddLabelSearchArgs (config, where, "-label", "fakeRun.label", "==");
    634635    PXOPT_COPY_S64(config->args, where, "-fake_id", "fake_id", "==");
    635     PXOPT_COPY_STR(config->args, where, "-label", "fakeRun.label", "==");
    636636    PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "==");
    637637    PXOPT_COPY_STR(config->args, where, "-exp_name", "exp_name", "==");
     
    646646    PXOPT_COPY_F64(config->args, where, "-airmass_min", "airmass", ">=");
    647647    PXOPT_COPY_F64(config->args, where, "-airmass_max", "airmass", "<");
    648     PXOPT_COPY_F64(config->args, where, "-ra_min", "ra", ">=");
    649     PXOPT_COPY_F64(config->args, where, "-ra_max", "ra", "<");
    650     PXOPT_COPY_F64(config->args, where, "-decl_min", "decl", ">=");
    651     PXOPT_COPY_F64(config->args, where, "-decl_max", "decl", "<");
     648    PXOPT_COPY_RADEC(config->args, where, "-ra_min", "ra", ">=");
     649    PXOPT_COPY_RADEC(config->args, where, "-ra_max", "ra", "<");
     650    PXOPT_COPY_RADEC(config->args, where, "-decl_min", "decl", ">=");
     651    PXOPT_COPY_RADEC(config->args, where, "-decl_max", "decl", "<");
    652652    PXOPT_COPY_F32(config->args, where, "-exp_time_min", "exp_time", ">=");
    653653    PXOPT_COPY_F32(config->args, where, "-exp_time_max", "exp_time", "<");
     
    669669    PXOPT_COPY_F64(config->args, where, "-posang_max", "posang", "<");
    670670    PXOPT_COPY_STR(config->args, where, "-object", "object", "==");
    671     PXOPT_COPY_F32(config->args, where, "-solang_min", "solang", ">=");
    672     PXOPT_COPY_F32(config->args, where, "-solang_max", "solang", "<");
     671    PXOPT_COPY_F32(config->args, where, "-sun_angle_min", "sun_angle", ">=");
     672    PXOPT_COPY_F32(config->args, where, "-sun_angle_max", "sun_angle", "<");
    673673
    674674    if (!psListLength(where->list)
     
    895895
    896896    psMetadata *where = psMetadataAlloc();
    897     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     897    pxAddLabelSearchArgs (config, where, "-label", "fakeRun.label", "==");
    898898
    899899    psString query = pxDataGet("faketool_pendingcleanuprun.sql");
     
    11571157        // pxwarpQueueByFakeID() can only be run after fakeRun.state has been set to stop
    11581158        if (!pxwarpQueueByFakeID(config,
    1159                     fakeRun->fake_id,
    1160                     fakeRun->workdir,
    1161                     fakeRun->label,
    1162                     fakeRun->dvodb,
    1163                     fakeRun->tess_id,
    1164                     fakeRun->end_stage
     1159                                 fakeRun->fake_id,
     1160                                 fakeRun->workdir,
     1161                                 fakeRun->label,
     1162                                 fakeRun->dvodb,
     1163                                 fakeRun->tess_id,
     1164                                 fakeRun->reduction,
     1165                                 fakeRun->end_stage
    11651166        )) {
    11661167            psError(PS_ERR_UNKNOWN, false, "failed to queue warpRun");
Note: See TracChangeset for help on using the changeset viewer.