IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2007, 11:55:11 AM (19 years ago)
Author:
eugene
Message:

added various chip and camera level metadata fields (bias stdev, ap resid, etc)

File:
1 edited

Legend:

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

    r13633 r13649  
    483483    }
    484484
    485     psS32 nastro = psMetadataLookupS32(&status, config->args, "-nastro");
    486     if (!status) {
    487         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -nastro");
    488         return false;
    489     }
    490     if (nastro < 0) {
    491         psError(PS_ERR_UNKNOWN, true, "-nastro is required");
    492         return false;
    493     }
    494 
    495485    psF32 zp_mean = psMetadataLookupF32(&status, config->args, "-zp_mean");
    496486    if (!status) {
     
    510500    if (isnan(zp_stdev)) {
    511501        psError(PS_ERR_UNKNOWN, true, "-zp_stdev is required");
     502        return false;
     503    }
     504
     505    psF32 fwhm = psMetadataLookupF32(&status, config->args, "-fwhm");
     506    if (!status) {
     507        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -fwhm");
     508        return false;
     509    }
     510    if (isnan(fwhm)) {
     511        psError(PS_ERR_UNKNOWN, true, "-fwhm is required");
     512        return false;
     513    }
     514
     515    psF32 fwhm_range = psMetadataLookupF32(&status, config->args, "-fwhm_range");
     516    if (!status) {
     517        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -fwhm_range");
     518        return false;
     519    }
     520    if (isnan(fwhm_range)) {
     521        psError(PS_ERR_UNKNOWN, true, "-fwhm_range is required");
     522        return false;
     523    }
     524
     525    psS32 n_stars = psMetadataLookupS32(&status, config->args, "-n_stars");
     526    if (!status) {
     527        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -n_stars");
     528        return false;
     529    }
     530    if (n_stars < 0) {
     531        psError(PS_ERR_UNKNOWN, true, "-n_stars is required");
     532        return false;
     533    }
     534
     535    psS32 n_extended = psMetadataLookupS32(&status, config->args, "-n_extended");
     536    if (!status) {
     537        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -n_extended");
     538        return false;
     539    }
     540    if (n_extended < 0) {
     541        psError(PS_ERR_UNKNOWN, true, "-n_extended is required");
     542        return false;
     543    }
     544
     545    psS32 n_cr = psMetadataLookupS32(&status, config->args, "-n_cr");
     546    if (!status) {
     547        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -n_cr");
     548        return false;
     549    }
     550    if (n_cr < 0) {
     551        psError(PS_ERR_UNKNOWN, true, "-n_cr is required");
     552        return false;
     553    }
     554
     555    psS32 n_astrom = psMetadataLookupS32(&status, config->args, "-n_astrom");
     556    if (!status) {
     557        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -n_astrom");
     558        return false;
     559    }
     560    if (n_astrom < 0) {
     561        psError(PS_ERR_UNKNOWN, true, "-n_astrom is required");
    512562        return false;
    513563    }
     
    576626        sigma_ra,
    577627        sigma_dec,
    578         nastro,
    579         path_base,
    580628        zp_mean,
    581629        zp_stdev,
     630        fwhm,
     631        fwhm_range,
     632        n_stars,
     633        n_extended,
     634        n_cr,
     635        n_astrom,
     636        path_base,
    582637        code
    583638    );
Note: See TracChangeset for help on using the changeset viewer.