IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2010, 3:47:06 PM (16 years ago)
Author:
watersc1
Message:

Have difference images inherit the data_group of the warp that went into them.

File:
1 edited

Legend:

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

    r27445 r27723  
    13661366        }
    13671367
    1368 
    13691368        psString filter = psMetadataLookupStr(&mdok, row, "filter");
    13701369        if (!mdok) {
     
    13781377            return false;
    13791378        }
     1379
     1380        psString warp_data_group = psMetadataLookupStr(&mdok, row, "data_group");
     1381        if (!mdok) {
     1382          psError(PXTOOLS_ERR_PROG, false, "warp data_group not found");
     1383          psFree(warp2Query);
     1384          psFree(stackQuery);
     1385          psFree(skycell_query);
     1386          if (!psDBRollback(config->dbh)) {
     1387            psError(PS_ERR_UNKNOWN, false, "database error");
     1388          }
     1389          return false;
     1390        }
     1391        if (warp_data_group) {
     1392          data_group = warp_data_group;
     1393        }
     1394       
    13801395        if (!p_psDBRunQueryF(config->dbh, skycell_query, stackQuery, warp_id, filter, warp2Query)) {
    13811396            psError(PS_ERR_UNKNOWN, false, "database error");
     
    17391754        const char *template = psMetadataLookupStr(NULL, row, "template_warp_id");
    17401755        const char *tess_id = psMetadataLookupStr(NULL, row, "tess_id");
     1756        psString input_data_group = psMetadataLookupStr(NULL, row, "input_data_group");
     1757        if (input_data_group) {
     1758          data_group = input_data_group;
     1759        }
     1760
    17411761        if (!input_id || !template || !tess_id) {
    17421762            psError(PXTOOLS_ERR_PROG, false, "Identifiers not found");
     
    17491769            return false;
    17501770        }
    1751 
     1771       
    17521772        diffRunRow *run = diffRunRowAlloc(0,
    17531773                                          "reg",
Note: See TracChangeset for help on using the changeset viewer.