IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11816


Ignore:
Timestamp:
Feb 14, 2007, 5:32:33 PM (19 years ago)
Author:
jhoblitt
Message:

add solang/label/parent fields

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/tasks.md

    r11815 r11816  
    1 # $Id: tasks.md,v 1.117 2007-02-15 02:46:29 jhoblitt Exp $
     1# $Id: tasks.md,v 1.118 2007-02-15 03:32:33 jhoblitt Exp $
    22
    33# this table records all exposure ID ever seen from the summit
     
    248248
    249249detRun METADATA
    250     det_id      S32         0      # Primary Key AUTO_INCREMENT
    251     iteration   S32         0      # Key
    252     det_type    STR         64     # Key
    253     mode        STR         64     # Key
    254     state       STR         64     # Key
     250    det_id      S32         0       # Primary Key AUTO_INCREMENT
     251    iteration   S32         0       # Key
     252    det_type    STR         64      # Key
     253    mode        STR         64      # Key
     254    state       STR         64      # Key
    255255    workdir     STR         255     # destination for output files
    256256    camera      STR         64
    257257    telescope   STR         64
    258     exp_type    STR         64     # XXX this should be dropped
     258    exp_type    STR         64      # XXX this should be dropped
    259259    filter      STR         64
    260260    airmass_min F32         0.0
     
    274274    solang_max  F32         0.0
    275275    label       STR         64      # key
     276    parent      S32         0       # Key
    276277END
    277278
  • trunk/ippTools/src/dettool.c

    r11713 r11816  
    422422    }
    423423
     424    psString label = psMetadataLookupStr(&status, config->args, "-label");
     425    if (!status) {
     426        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label");
     427        return false;
     428    }
     429
    424430    // we have to support multipe exp_tags
    425431    psMetadataItem *item = psMetadataLookup(config->args, "-exp_tag");
     
    512518            time_end,
    513519            use_begin,
    514             use_end
     520            use_end,
     521            0.0,    // solang min
     522            0.0,    // solang max
     523            label,
     524            0       // parent
    515525        );
    516526    psFree(registered);
     
    10621072            use_end = NULL;
    10631073        }
     1074    }
     1075
     1076    psString label = psMetadataLookupStr(&status, config->args, "-label");
     1077    if (!status) {
     1078        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label");
     1079        return false;
    10641080    }
    10651081
     
    11541170            time_end,
    11551171            use_begin,
    1156             use_end
     1172            use_end,
     1173            0.0,    // solang min
     1174            0.0,    // solang max
     1175            label,
     1176            0       // parent
    11571177        );
    11581178    psFree(registered);
     
    62736293    }
    62746294
     6295    psString parent = psMetadataLookupStr(&status, config->args, "-parent");
     6296    if (!status) {
     6297        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -parent");
     6298        return false;
     6299    }
     6300
     6301    psString label = psMetadataLookupStr(&status, config->args, "-label");
     6302    if (!status) {
     6303        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label");
     6304        return false;
     6305    }
     6306
    62756307    if (!psDBTransaction(config->dbh)) {
    62766308        psError(PS_ERR_UNKNOWN, false, "database error");
     
    63016333            time_end,
    63026334            use_begin,
    6303             use_end
     6335            use_end,
     6336            0.0,        // solang min
     6337            0.0,        // solang max
     6338            label,      // label
     6339            atoi(parent)
    63046340    )) {
    63056341        psError(PS_ERR_UNKNOWN, false, "database error");
  • trunk/ippTools/src/dettoolConfig.c

    r11702 r11816  
    749749    psMetadataAddF64(register_detrendArgs, PS_LIST_TAIL, "-bg_mean_stdev",  0,
    750750            "define exposue background mean stdev", NAN);
     751    psMetadataAddStr(register_detrendArgs, PS_LIST_TAIL, "-parent",  0,
     752            "define parent det_id", NULL);
    751753    psMetadataAddBool(register_detrendArgs, PS_LIST_TAIL, "-simple",  0,
    752754            "use the simple output format", false);
  • trunk/ippTools/src/regtool.c

    r11735 r11816  
    10861086        posang,
    10871087        object,
     1088        0.0,
    10881089        code
    10891090    );
Note: See TracChangeset for help on using the changeset viewer.