IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17037


Ignore:
Timestamp:
Mar 18, 2008, 8:38:51 AM (18 years ago)
Author:
eugene
Message:

add option to write refstars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroChooseRefstars.c

    r15963 r17037  
    11# include "psastroInternal.h"
     2
     3# define ESCAPE { \
     4  psError(PS_ERR_UNKNOWN, false, "Failure in psastroChooseRefstars"); \
     5  psFree (index); \
     6  psFree (view); \
     7  return false; \
     8}
    29
    310bool psastroChooseRefstars (pmConfig *config, psArray *refs) {
     
    3542
    3643    int nMax = psMetadataLookupS32 (&status, recipe, "PSASTRO.MAX.NREF");
     44
     45    // de-activate all files except PSASTRO.REFSTARS
     46    pmFPAfileActivate (config->files, false, NULL);
     47    pmFPAfileActivate (config->files, true, "PSASTRO.REFSTARS");
    3748
    3849    // this loop selects the matched stars for all chips
     
    101112            }
    102113        }
     114        if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE;
    103115    }
     116    if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE;
     117
     118    // activate all files except PSASTRO.OUTPUT
     119    if (!pmFPAfileActivate (config->files, true, NULL)) ESCAPE;
     120    if (!pmFPAfileActivate (config->files, false, "PSASTRO.REFSTARS")) ESCAPE;
    104121
    105122    psFree (index);
Note: See TracChangeset for help on using the changeset viewer.