IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 8, 2007, 12:30:21 PM (19 years ago)
Author:
Paul Price
Message:

Changes to support automatically generated mosaicked camera configurations. Added pmFPAfileDefineChipMosaic and ...FPAMosaic that define fpa files using the new mosaicked camera configurations. Added mosaicLevel to pmFPAfile to prevent the mosaicked files being written out at too low a level. Changes to concept reads so that all concepts are read as available.

File:
1 edited

Legend:

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

    r10084 r10966  
    77*  @author EAM, IfA
    88*
    9 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-11-19 01:55:24 $
     9*  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2007-01-08 22:30:21 $
    1111*
    1212*  Copyright 2004-2005 Institute for Astronomy, University of Hawaii
     
    2222// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    2323// reference count is held by the config->files metadata.
    24 pmFPAfile *pmFPAfileDefineInput (pmConfig *config, pmFPA *fpa, char *name);
     24pmFPAfile *pmFPAfileDefineInput (pmConfig *config, pmFPA *fpa, const char *name);
    2525
    2626// load the pmFPAfile information from the camera configuration data
     
    2828// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    2929// reference count is held by the config->files metadata.
    30 pmFPAfile *pmFPAfileDefineOutput (pmConfig *config, pmFPA *fpa, char *name);
     30pmFPAfile *pmFPAfileDefineOutput (pmConfig *config, pmFPA *fpa, const char *name);
    3131
    3232// look for the given argname on the argument list.  find the give filename from the file rules
     
    3434// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    3535// reference count is held by the config->files metadata.
    36 pmFPAfile *pmFPAfileDefineFromArgs (bool *found, pmConfig *config, char *filename, char *argname);
     36pmFPAfile *pmFPAfileDefineFromArgs (bool *found, pmConfig *config, const char *filename, const char *argname);
    3737
    3838// look for the given argname on the argument list.  find the give filename from the file rules
     
    4040// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    4141// reference count is held by the config->files metadata.
    42 pmFPAfile *pmFPAfileDefineFromConf (bool *found, pmConfig *config, char *filename);
     42pmFPAfile *pmFPAfileDefineFromConf (bool *found, pmConfig *config, const char *filename);
    4343
    4444// look for the given argname on the argument list.  find the give filename from the file rules
     
    4646// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    4747// reference count is held by the config->files metadata.
    48 pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, pmConfig *config, char *filename, pmFPA *input, pmDetrendType type);
     48pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, pmConfig *config, const char *filename,
     49                                     pmFPA *input, pmDetrendType type);
    4950
    5051// create a new output pmFPAfile based on an existing FPA
     
    5253// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    5354// reference count is held by the config->files metadata.
    54 pmFPAfile *pmFPAfileDefineFromFPA (pmConfig *config, pmFPA *src, int xBin, int yBin, char *filename);
     55pmFPAfile *pmFPAfileDefineFromFPA (pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename);
    5556
    5657// create a new output pmFPAfile based on an existing FPA
     
    5960// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    6061// reference count is held by the config->files metadata.
    61 pmFPAfile *pmFPAfileDefineNewCamera (pmConfig *config, char *filename);
     62pmFPAfile *pmFPAfileDefineNewCamera (pmConfig *config, const char *filename);
     63
     64/// Create a new output pmFPAfile based upon a chip mosaic of an existing FPA
     65///
     66/// The new pmFPAfile is inserted into the config->files metadata, freed and returned; so that the user does
     67/// not have to (and should not!) free the result.
     68pmFPAfile *pmFPAfileDefineChipMosaic(pmConfig *config, ///< Configuration data
     69                                     pmFPA *src, ///< Source FPA
     70                                     const char *filename ///< Output (root) filename
     71                                    );
     72
     73/// Create a new output pmFPAfile based upon an FPA mosaic of an existing FPA
     74///
     75/// The new pmFPAfile is inserted into the config->files metadata, freed and returned; so that the user does
     76/// not have to (and should not!) free the result.
     77pmFPAfile *pmFPAfileDefineFPAMosaic(pmConfig *config, ///< Configuration data
     78                                    pmFPA *src, ///< Source FPA
     79                                    const char *filename ///< Output (root) filename
     80                                   );
    6281
    6382// create a file with the given name, assign it type "INTERNAL", and supply it with an image
    6483// of the requested dimensions. (image only, mask and weight are ignored)
    65 pmReadout *pmFPAfileDefineInternal (psMetadata *files, char *name, int Nx, int Ny, int type);
     84pmReadout *pmFPAfileDefineInternal (psMetadata *files, const char *name, int Nx, int Ny, int type);
    6685
    6786// delete the INTERNAL file of the given name (if it exists)
    68 bool pmFPAfileDropInternal (psMetadata *files, char *name);
     87bool pmFPAfileDropInternal (psMetadata *files, const char *name);
    6988
    7089// look for the given argname on the argument list.  find the give filename from the file rules
     
    7291// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    7392// reference count is held by the config->files metadata.
    74 pmFPAfile *pmFPAfileDefineSingleFromArgs (bool *found, pmConfig *config, char *filename, char *argname, int entry);
     93pmFPAfile *pmFPAfileDefineSingleFromArgs (bool *found, pmConfig *config, const char *filename,
     94        const char *argname, int entry);
     95
    7596# endif
Note: See TracChangeset for help on using the changeset viewer.