IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2006, 5:57:35 PM (20 years ago)
Author:
Paul Price
Message:

Code coming together, doesn't yet compile

Location:
trunk/ppMerge/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src

    • Property svn:ignore set to
      .deps
      Makefile
      Makefile.in
  • trunk/ppMerge/src/ppMerge.h

    r5862 r7061  
    1 # include <stdio.h>
    2 # include <strings.h>
    3 # include <glob.h>
     1#ifndef PP_MERGE_H
     2#define PP_MERGE_H
    43
    5 # include "pslib.h"
     4#include <stdio.h>
     5#include <pslib.h>
     6#include <psmodules.h>
    67
    7 # include "psAdditionals.h"
     8#define RECIPE "PPMERGE"                // Name of the recipe to use
    89
    9 # include "pmAstrometry.h"
    10 # include "pmReadout.h"
    11 # include "pmConfig.h"
    12 # include "pmFPAConstruct.h"
    13 # include "pmFPARead.h"
    14 # include "pmFPAConceptsGet.h"
    15 # include "pmFPAWrite.h"
    16 
    17 # include "pmReadoutCombine.h"
    18 
    19 # define RECIPE "MERGE" // Name of the recipe to use
    20 
    21 // XXX : same as in ppImage
    22 typedef enum {
    23     PP_LOAD_NONE,
    24     PP_LOAD_FPA,
    25     PP_LOAD_CHIP,
    26     PP_LOAD_CELL,
    27 } ppImageLoadDepth;
    28 
    29 // XXX : same as in ppImage
    30 typedef struct {
    31     psMetadata *site;
    32     psMetadata *camera;
    33     psMetadata *recipe;
    34     psMetadata *arguments;
    35     psDB       *database;
    36 } ppConfig;
    37 
    38 typedef struct {
    39     char *filename;
    40     pmFPA *fpa;
    41     psFits *fits;
    42     psMetadata *header;
    43     double zero;
    44     double scale;
    45 } ppFPA;
    46 
    47 typedef struct {
    48     psArray *input;
    49     ppFPA *output;
    50     ppFPA *process;
    51     ppFPA *mask;
    52 } ppData;
    53 
    54 typedef struct {
    55     ppImageLoadDepth imageLoadDepth;
    56     bool doMask;                        // apply a pixel mask before stacking
    57     pmCombineParams *combineParams;
    58     bool applyZeroScale;
    59     double gain;
    60     double readnoise;
    61 } ppOptions;
    62 
    63 bool ppMergeConfig (ppConfig *config, int argc, char **argv);
    64 bool ppMergeLoop (ppData *data, ppOptions *options, ppConfig *config);
    65 bool ppMergeOptions (ppData *data, ppOptions *options, ppConfig *config);
    66 bool ppMergeOutput (ppData *data, ppOptions *options, ppConfig *config);
    67 bool ppMergeParseCamera (ppData *data, ppConfig *config);
    68 bool ppMergeParseDetrend (ppData *data, ppOptions *options, ppConfig *config);
    69 
    70 bool ppMergeCell (pmCell *output, pmCell *mask, psArray *cellList, ppOptions *options, ppConfig *config);
    71 
    72 // XXX : these functions are identical to the ppImage equivalents
    73 pmReadout* ppDetrendSelectFirst (pmCell *cell, char *name, bool doThis);
    74 bool ppFPAOpen (ppFPA *fpa, psMetadata *camera, char *name, bool doThis);
    75 bool ppMergeLoadPixels (ppFPA *input, ppFPA *process, psDB *db, int nChip, int nCell);
Note: See TracChangeset for help on using the changeset viewer.