IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2006, 1:32:49 PM (20 years ago)
Author:
jhoblitt
Message:

rename obstype fields -> object

File:
1 edited

Legend:

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

    r9240 r9250  
    814814        return false;
    815815    }
    816     psString obstype = psMetadataLookupStr(&status, config->args, "-obstype");
    817     if (!status) {
    818         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -obstype");
    819         return false;
    820     }
    821     if (!obstype) {
    822         psError(PS_ERR_UNKNOWN, true, "-obstype is required");
     816    // optional
     817    psString object = psMetadataLookupStr(&status, config->args, "-object");
     818    if (!status) {
     819        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -object");
    823820        return false;
    824821    }
     
    842839        ccd_temp,
    843840        posang,
    844         obstype
     841        object
    845842    );
    846843}
     
    969966        return false;
    970967    }
    971     psString obstype = psMetadataLookupStr(&status, config->args, "-obstype");
    972     if (!status) {
    973         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -obstype");
    974         return false;
    975     }
    976     if (!obstype) {
    977         psError(PS_ERR_UNKNOWN, true, "-obstype is required");
     968    // optional
     969    psString object = psMetadataLookupStr(&status, config->args, "-object");
     970    if (!status) {
     971        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -object");
    978972        return false;
    979973    }
     
    997991        ccd_temp,
    998992        posang,
    999         obstype
     993        object
    1000994    );
    1001995}
Note: See TracChangeset for help on using the changeset viewer.