IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2007, 11:37:58 AM (19 years ago)
Author:
Paul Price
Message:

Had trouble with defining files for psphot from pswarp --- didn't know what format to use, and so ended up using the default one, which was wrong (because wanted to run psphot on the warped image, not the input image). So added format and format name to the pmFPAfile, and new functions to define a file from one already existing, using its camera and format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.h

    r14647 r14889  
    44 * @author EAM, IfA
    55 *
    6  * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-08-23 23:42:41 $
     6 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-09-19 21:37:58 $
    88 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    99 */
     
    2828// Define an output pmFPAfile
    2929pmFPAfile *pmFPAfileDefineOutput(const pmConfig *config, // Configuration
    30                                 pmFPA *fpa, // Optional FPA to bind
    31                                  const char *name // Name of camera format to use
     30                                pmFPA *fpa, // Optional FPA to bind
     31                                 const char *name // Name of file rule
    3232    );
    3333
     34/// Same as pmFPAfileDefineOutput, but binds to the fpa in the provided file
     35pmFPAfile *pmFPAfileDefineOutputFromFile(const pmConfig *config, // Configuration
     36                                         pmFPAfile *file, // File to bind FPAs, or NULL
     37                                         const char *name // Name of file rule
     38    );
     39
     40/// Define the FPA file using the provided camera and format names.
    3441pmFPAfile *pmFPAfileDefineOutputForFormat(const pmConfig *config, // Configuration
    35                                           pmFPA *fpa, // Optional FPA to bind
    36                                           const char *name, // Name of file rule
    37                                           const char *cameraName, // Name of camera configuration to use
    38                                           const char *formatName // Name of camera format to use
     42                                          pmFPA *fpa, // Optional FPA to bind
     43                                          const char *name, // Name of file rule
     44                                          psString cameraName, // Name of camera configuration to use
     45                                          psString formatName // Name of camera format to use
    3946    );
    4047
     
    6976// reference count is held by the config->files metadata.
    7077pmFPAfile *pmFPAfileDefineFromFPA (const pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename);
     78
     79/// Same as pmFPAfileDefineFromFPA, except it uses an FPA file instead of an FPA
     80pmFPAfile *pmFPAfileDefineFromFile(const pmConfig *config, // Configuration
     81                                   pmFPAfile *src, // Source file for this file
     82                                   int xBin, int yBin, // Binning for this file
     83                                   const char *filename // Name of file rule
     84    );
     85
    7186
    7287// create a new output pmFPAfile based on an existing FPA
Note: See TracChangeset for help on using the changeset viewer.