IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2020, 3:29:09 PM (6 years ago)
Author:
tdeboer
Message:

added procedure to remove pixel NaNing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_Glints.c

    r41367 r41382  
    5555#include "pmAstrometryWCS.h"
    5656
    57 # include "psastroInternal.h"
     57# include "pmSourceInternal.h"
    5858
    5959# define ESCAPE(MSG) { \
     
    7171    psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, PSASTRO_RECIPE);
    7272    if (!recipe) {
    73         psError(PSASTRO_ERR_CONFIG, true, "Can't find PSASTRO recipe");
     73        psError(PM_ERR_CONFIG, true, "Can't find PSASTRO recipe");
    7474        return false;
    7575    }
     
    110110    pmFPAfile *astrom = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
    111111    if (!astrom) {
    112         psError(PSASTRO_ERR_CONFIG, true, "Can't find input data");
     112        psError(PM_ERR_CONFIG, true, "Can't find input data");
    113113        return false;
    114114    }
     
    117117    // use the zero point and exposure time to convert to apparent mags: M_ap = M_inst + C_0 + 2.5*log(exptime)
    118118    pmFPA *fpa_ast = astrom->fpa;
    119     if (!psastroZeroPointFromRecipeGlint (&zeropt, &exptime, NULL,&GLINT_MAX_MAG, fpa_ast, recipe)) {
     119    if (!pmSourceZeroPointFromRecipeGlint (&zeropt, &exptime, NULL,&GLINT_MAX_MAG, fpa_ast, recipe)) {
    120120        psLogMsg ("psastro", PS_LOG_INFO, "failed to load zeropt data from recipe");
    121121        return false;
     
    237237}
    238238
    239 bool psastroZeroPointFromRecipeGlint (float *zeropt, float *exptime, float *ghostMaxMag, double *glintMaxMag, pmFPA *fpa, psMetadata *recipe) {
     239bool pmSourceZeroPointFromRecipeGlint (float *zeropt, float *exptime, float *ghostMaxMag, double *glintMaxMag, pmFPA *fpa, psMetadata *recipe) {
    240240
    241241    bool status;
Note: See TracChangeset for help on using the changeset viewer.