IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2008, 4:56:38 PM (18 years ago)
Author:
eugene
Message:

substantial work on argument handling to support externally supplied images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSim.h

    r17630 r17672  
    1313#include <psmodules.h>
    1414#include <psastro.h>
     15#include <psphot.h>
    1516
    1617#define PPSIM_RECIPE "PPSIM"
     
    1819
    1920// Compare a value with minimum and maximum values, replacing where required.
    20 #define COMPARE(VALUE,MIN,MAX) { \
    21         if (VALUE < MIN) { MIN = VALUE; } \
    22         if (VALUE > MAX) { MAX = VALUE; } \
     21#define COMPARE(VALUE,MIN,MAX) {                \
     22        if (VALUE < MIN) { MIN = VALUE; }       \
     23        if (VALUE > MAX) { MAX = VALUE; }       \
    2324    }
    2425
     
    7071
    7172/// Parse command-line arguments
    72 void ppSimArguments(int argc, char *argv[], ///< Command-line arguments
     73bool ppSimArguments(int argc, char **argv, ///< Command-line arguments
    7374                    pmConfig *config ///< Configuration
    74                     );
     75    );
    7576
    7677/// Create output file
     
    7879/// Returns a borrowed pointer to the FPA file.
    7980pmFPAfile *ppSimCreate(pmConfig *config ///< Configuration
    80                        );
     81    );
    8182
    8283// Return bounds of a chip, based on the concepts
    8384psRegion *ppSimChipBounds(const pmChip *chip, // Chip for which to determine size
    8485                          pmFPAview *view // View for chip
    85                           );
     86    );
    8687
    8788// Return bounds of an FPA, based on the concepts
    8889psRegion *ppSimFPABounds(const pmFPA *fpa       // FPA for which to determine size
    89                          );
     90    );
    9091
    9192/// Loop over the output file, generating simulated data
    9293bool ppSimLoop(pmConfig *config ///< Configuration
    93                  );
     94    );
    9495
    9596psVector *ppSimMakeBiassec (pmCell *cell, pmConfig *config);
     
    9899bool ppSimMakeSky (pmReadout *readout, psImage *expCorr, ppSimType type, pmConfig *config);
    99100
    100 psArray *ppSimLoadSpots (pmFPA *fpa, pmConfig *config);
     101bool ppSimLoadSpots (pmFPA *fpa, pmConfig *config);
    101102
    102103bool ppSimLoadStars (psArray *stars, pmFPA *fpa, pmConfig *config);
     
    147148float ppSimMagToFlux (float mag, float zp);
    148149
     150float ppSimArgToRecipeF32(bool *status,
     151                          psMetadata *options,    // Target to which to add value
     152                          const char *recipeName, // Name for value in the recipe
     153                          psMetadata *arguments,  // Command-line arguments
     154                          const char *argName    // Argument name in the command-line arguments
     155    );
     156
     157int ppSimArgToRecipeS32(bool *status,
     158                        psMetadata *options,    // Target to which to add value
     159                        const char *recipeName, // Name for value in the recipe
     160                        psMetadata *arguments,  // Command-line arguments
     161                        const char *argName      // Argument name in the command-line arguments
     162    );
     163
     164char *ppSimArgToRecipeStr(bool *status,
     165                          psMetadata *options,    // Target to which to add value
     166                          const char *recipeName, // Name for value in the recipe
     167                          psMetadata *arguments,  // Command-line arguments
     168                          const char *argName    // Argument name in the command-line arguments
     169    );
     170
     171ppSimType ppSimTypeFromString (char *typeStr);
     172char *ppSimTypeToString (ppSimType type);
     173
     174float ppSimGetZeroPoint (psMetadata *recipe, char *filter);
     175
    149176#endif
Note: See TracChangeset for help on using the changeset viewer.