IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

remove pxinject -newExp -datesobs & -exp_type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.