IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2006, 6:35:19 PM (20 years ago)
Author:
jhoblitt
Message:

add obstype to raw* tables

File:
1 edited

Legend:

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

    r9057 r9189  
    794794        return false;
    795795    }
     796    psString obstype = psMetadataLookupStr(&status, config->args, "-obstype");
     797    if (!status) {
     798        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -obstype");
     799        return false;
     800    }
     801    if (!obstype) {
     802        psError(PS_ERR_UNKNOWN, true, "-obstype is required");
     803        return false;
     804    }
    796805
    797806    return rawDetrendExpRowAlloc(
     
    812821        az,
    813822        ccd_temp,
    814         posang
     823        posang,
     824        obstype
    815825    );
    816826}
     
    937947    if (isnan(posang)) {
    938948        psError(PS_ERR_UNKNOWN, true, "-posang is required");
     949        return false;
     950    }
     951    psString obstype = psMetadataLookupStr(&status, config->args, "-obstype");
     952    if (!status) {
     953        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -obstype");
     954        return false;
     955    }
     956    if (!obstype) {
     957        psError(PS_ERR_UNKNOWN, true, "-obstype is required");
    939958        return false;
    940959    }
     
    957976        az,
    958977        ccd_temp,
    959         posang
     978        posang,
     979        obstype
    960980    );
    961981}
Note: See TracChangeset for help on using the changeset viewer.