/* @file  pmConceptsPhotcode.h
 * @brief Generate a photcode from the concepts
 *
 * @author Eugene Magnier, IfA
 *
 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
 * @date $Date: 2007-01-24 02:54:14 $
 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
 */

#ifndef PM_CONCEPTS_PHOTCODE_H
#define PM_CONCEPTS_PHOTCODE_H

/// @addtogroup Concepts Data Abstraction Concepts
/// @{

#include <pslib.h>
#include "pmConfig.h"
#include "pmFPAview.h"
#include "pmFPAfile.h"

/// Return the photcode based on the PHOTCODE.RULE in the PHASE2 recipe
///
/// A photometry code ("photcode") is a string that represents the combination of filter and detector (chip).
/// This functions generates a photcode for a particular chip within the FPA, based on the PHOTCODE.RULE in
/// the PHASE2 recipe.  Interpolation using the usual syntax (e.g., "{CHIP.NAME}") is permitted.
psString pmConceptsPhotcodeForView(pmConfig *config, pmFPAfile *file, pmFPAview *view);

/// @}
# endif
