IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21178


Ignore:
Timestamp:
Jan 26, 2009, 2:04:28 PM (17 years ago)
Author:
eugene
Message:

move lists of names to pswarpFileNames.h; use psphotReadoutFindPSF instead of full psphotReadout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpLoop.c

    r20348 r21178  
    33
    44#define WCS_NONLIN_TOL 0.001            // Non-linear tolerance for header WCS
    5 #define PSPHOT_FIND_PSF 0               // Use psphot's findPSF function?
    6 //#define TESTING 1                       // Testing output?
    7 
    8 // Lists of file rules for the detectors and skycells, and an independent list of everything else
    9 // Lists must end with a NULL
    10 static char *detectorFiles[] = { "PSWARP.INPUT", "PSWARP.MASK", "PSWARP.WEIGHT", NULL };
    11 static char *skycellFiles[] = { "PSWARP.OUTPUT", "PSWARP.OUTPUT.MASK", "PSWARP.OUTPUT.WEIGHT", NULL };
    12 static char *photFiles[] = { "PSPHOT.INPUT", "PSPHOT.OUTPUT",
    13 #if PSPHOT_FIND_PSF
    14                              "PSPHOT.INPUT.CMF",
    15 #endif
    16                              "PSPHOT.RESID",
    17                              "PSPHOT.BACKMDL", "PSPHOT.BACKMDL.STDEV", "PSPHOT.BACKGND", "PSPHOT.BACKSUB",
    18                              "PSPHOT.PSF.SAVE", "SOURCE.PLOT.MOMENTS", "SOURCE.PLOT.PSFMODEL",
    19                              "SOURCE.PLOT.APRESID", NULL };
    20 static char *independentFiles[] = { "PSWARP.ASTROM", // Read independently from the input pixels
    21                                     "PSWARP.SKYCELL", // Don't care about the skycell once we have its WCS
    22                                     "PSWARP.OUTPUT.SOURCES", // Save these independently so we can do the PSF
    23                                     NULL };
    24 
     5#define PSPHOT_FIND_PSF 1               // Use psphot's findPSF function?
     6#define TESTING 0                       // Testing output?
     7
     8// Lists of file rules used at different stages
     9#include "pswarpFileNames.h"
     10
     11// XXX these are generic functions which should be moved to psModules
    2512// Activate a list of files
    2613static void fileActivation(pmConfig *config, // Configuration
     
    141128
    142129    // Read the input astrometry
     130    // XXX rather than use the activations here, this should just explicitly loop over the desired filerule
    143131    {
    144132        pmFPAfileActivate(config->files, true, "PSWARP.ASTROM");
     
    386374#endif
    387375
    388 #ifdef TESTING
     376#if (TESTING)
    389377        {
    390378            #define PSF_SIZE 20         // Half-size of PSF
Note: See TracChangeset for help on using the changeset viewer.