| Line 7... |
Line 7... |
*
|
*
|
* Authors: E.BERTIN (IAP)
|
* Authors: E.BERTIN (IAP)
|
*
|
*
|
* Contents: Include file for profit.c.
|
* Contents: Include file for profit.c.
|
*
|
*
|
* Last modify: 24/09/2009
|
* Last modify: 07/10/2009
|
*
|
*
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
*/
|
*/
|
|
|
#ifndef _PROFIT_H_
|
#ifndef _PROFIT_H_
|
#define _PROFIT_H_
|
#define _PROFIT_H_
|
|
|
/*-------------------------------- flags ------------------------------------*/
|
/*-------------------------------- flags ------------------------------------*/
|
|
|
#define PROFIT_FLIPPED 0x0001
|
#define PROFLAG_MODSUB 0x0001
|
|
#define PROFLAG_OBJSUB 0x0002
|
|
#define PROFLAG_NOTCONST 0x0004
|
|
|
/*-------------------------------- macros -----------------------------------*/
|
/*-------------------------------- macros -----------------------------------*/
|
|
|
#define PROFIT_POW(x,a) (x>0.01? exp(a*log(x)) : pow(x,a))
|
#define PROFIT_POW(x,a) (x>0.01? exp(a*log(x)) : pow(x,a))
|
#define PROFIT_POWF(x,a) (x>0.01? expf(a*logf(x)) : powf(x,a))
|
#define PROFIT_POWF(x,a) (x>0.01? expf(a*logf(x)) : powf(x,a))
|
| Line 32... |
Line 34... |
#define PROFIT_MAXPROF 8 /* Max. nb of profile components */
|
#define PROFIT_MAXPROF 8 /* Max. nb of profile components */
|
#define PROFIT_OVERSAMP 5 /* Max. profile oversamp. factor on each axis */
|
#define PROFIT_OVERSAMP 5 /* Max. profile oversamp. factor on each axis */
|
#define PROFIT_HIDEFRES 201 /* Resolution of the high def. model raster */
|
#define PROFIT_HIDEFRES 201 /* Resolution of the high def. model raster */
|
#define PROFIT_REFFFAC 6.0 /* Factor in r_eff for measurement radius*/
|
#define PROFIT_REFFFAC 6.0 /* Factor in r_eff for measurement radius*/
|
#define PROFIT_DYNPARAM 10.0 /* Dynamic compression param. in sigma units */
|
#define PROFIT_DYNPARAM 10.0 /* Dynamic compression param. in sigma units */
|
|
#define PROFIT_MAXMODSIZE 1024 /* Maximum size allowed for the model raster */
|
|
#define PROFIT_MAXOBJSIZE 512 /* Maximum size allowed for the object raster */
|
#define PROFIT_BARXFADE 0.1 /* Fract. of bar length crossfaded with arms */
|
#define PROFIT_BARXFADE 0.1 /* Fract. of bar length crossfaded with arms */
|
#define PROFIT_MAXEXTRA 2 /* Max. nb of extra free params of profiles */
|
#define PROFIT_MAXEXTRA 2 /* Max. nb of extra free params of profiles */
|
#define PROFIT_PROFRES 256 /* Pixmap size of model components */
|
#define PROFIT_PROFRES 256 /* Pixmap size of model components */
|
#define PROFIT_PROFSRES 64 /* Number of model subcomponents */
|
#define PROFIT_PROFSRES 64 /* Number of model subcomponents */
|
#define INTERP_MAXKERNELWIDTH 8 /* Max. range of kernel (pixels) */
|
#define INTERP_MAXKERNELWIDTH 8 /* Max. range of kernel (pixels) */
|
| Line 119... |
Line 123... |
profstruct **prof; /* Array of pointers to profiles */
|
profstruct **prof; /* Array of pointers to profiles */
|
int nprof; /* Number of profiles to consider */
|
int nprof; /* Number of profiles to consider */
|
struct psf *psf; /* PSF */
|
struct psf *psf; /* PSF */
|
float pixstep; /* Model/PSF sampling step */
|
float pixstep; /* Model/PSF sampling step */
|
float fluxfac; /* Model flux scaling factor */
|
float fluxfac; /* Model flux scaling factor */
|
|
float nsubsamp; /* Subsampling factor */
|
float *psfdft; /* Compressed Fourier Transform of the PSF */
|
float *psfdft; /* Compressed Fourier Transform of the PSF */
|
float *psfpix; /* Full res. pixmap of the PSF */
|
float *psfpix; /* Full res. pixmap of the PSF */
|
float *modpix; /* Full res. pixmap of the complete model */
|
float *modpix; /* Full res. pixmap of the complete model */
|
float *pmodpix; /* Full res. pixmap of the partial model */
|
float *pmodpix; /* Full res. pixmap of the partial model */
|
int modnaxisn[3]; /* Dimensions along each axis */
|
int modnaxisn[3]; /* Dimensions along each axis */
|