IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11142


Ignore:
Timestamp:
Jan 18, 2007, 2:34:52 PM (19 years ago)
Author:
jhoblitt
Message:

remove pxinject -newExp -datesobs & -exp_type

Location:
trunk/ippTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/configure.ac

    r11138 r11142  
    1616PKG_CHECK_MODULES([PSLIB], [pslib >= 0.12.99])
    1717PKG_CHECK_MODULES([PSMODULES], [psmodules >= 0.12.0])
    18 PKG_CHECK_MODULES([IPPDB], [ippdb >= 0.0.76])
     18PKG_CHECK_MODULES([IPPDB], [ippdb >= 0.0.77])
    1919
    2020dnl check for PSDB support
  • trunk/ippTools/scripts/regtest.sh

    r11138 r11142  
    88echo -e "YES\nipp\n\n" | pxadmin -recreate || exit 1
    99
    10 exp_tag1=`$inject -newExp -exp_id t10 -inst gpc -telescope ps1 -exp_type object -imfiles 4 -workdir file::///some/path -simple` || exit 1
     10exp_tag1=`$inject -newExp -exp_id t10 -inst gpc -telescope ps1 -imfiles 4 -workdir file::///some/path -simple` || exit 1
    1111
    1212for ID in `seq 0 3`; do
     
    1414done;
    1515
    16 exp_tag2=`$inject -newExp -exp_id t11 -inst gpc -telescope ps1 -exp_type object -imfiles 4 -workdir file::///some/path -simple` || exit 1
     16exp_tag2=`$inject -newExp -exp_id t11 -inst gpc -telescope ps1 -imfiles 4 -workdir file::///some/path -simple` || exit 1
    1717
    1818for ID in `seq 0 3`; do
     
    2323
    2424for ID in `seq 0 3`; do
    25     $p0tool -addprocessedimfile -exp_tag $exp_tag1 -exp_type object -class OTA -class_id $ID -filter r -airmass 10 -ra 1 -decl 2 -exp_time 0 -bg 1 -bg_stdev 1 -bg_mean_stdev 10 -alt 10 -az 10 -ccd_temp 10 -posang 10 -object dog -dateobs 2006-10-20T10:10:10Z || exit 1
     25    $p0tool -addprocessedimfile -exp_tag $exp_tag1 -class OTA -class_id $ID -filter r -airmass 10 -ra 1 -decl 2 -exp_time 0 -bg 1 -bg_stdev 1 -bg_mean_stdev 10 -alt 10 -az 10 -ccd_temp 10 -posang 10 -object dog -dateobs 2006-10-20T10:10:10Z || exit 1
    2626done;
    2727
  • trunk/ippTools/src/pxinject.c

    r11138 r11142  
    100100        return false;
    101101    }
    102     psString exp_type = psMetadataLookupStr(&status, config->args, "-exp_type");
    103     if (!status) {
    104         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_type");
    105         return false;
    106     }
    107     if (!exp_type) {
    108         psError(PS_ERR_UNKNOWN, true, "-exp_type is required");
    109         return false;
    110     }
    111102    psS32 imfiles = psMetadataLookupS32(&status, config->args, "-imfiles");
    112103    if (!status) {
     
    127118        psError(PS_ERR_UNKNOWN, true, "-workdir is required");
    128119        return false;
    129     }
    130 
    131     psTime *dateobs = NULL;
    132     {
    133         psString dateobsStr = psMetadataLookupStr(&status, config->args, "-dateobs");
    134         if (!status) {
    135             psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -dateobs");
    136             return false;
    137         }
    138         // pass through NULL as this is an optional field
    139         if (dateobsStr) {
    140             dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);
    141         } else {
    142             dateobs = NULL;
    143         }
    144 
    145120    }
    146121
     
    156131                camera,
    157132                telescope,
    158                 dateobs,
    159                 exp_type,
    160133                imfiles,
    161134                workdir
  • trunk/ippTools/src/pxinjectConfig.c

    r11138 r11142  
    5050    psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-telescope",  0,
    5151        "define the telescope name (required)", NULL);
    52     psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-dateobs",  0,
    53         "define observation time", NULL);
    54     psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-exp_type",  0,
    55         "define the type of exposure (required)", NULL);
    5652    psMetadataAddS32(newExpArgs, PS_LIST_TAIL, "-imfiles",  0,
    5753        "define the number of imfiles in this exp (required)", 0);
     
    157153    }
    158154    addWhereStr(telescope);
    159     addWhereStr(exp_type);
    160155    {
    161156        int n = 0;
Note: See TracChangeset for help on using the changeset viewer.