Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

extract/lib/proc_mask.c File Reference

Misc. procedures used by create_mask. More...

Go to the source code of this file.

Defines

#define LIMITS_RANGE   0.2

Functions

void norm_mask_param (Channel channel, double par[16])
 Mask parameters normalization.

void unnorm_mask_param (Channel channel, double par[16])
 Mask parameters unnormalization.

void set_mask_param_limits (double par[16], double parlb[16], double parub[16])
 Set limits to mask parameters.

void optics2mask_param (SnifsOptics *optics, double par[16])
 Copy mask parameters from SnifsOptics.

void mask_param2optics (double par[16], SnifsOptics *optics)
 Copy mask parameters to SnifsOptics.

void print_mask_param (double par[16])
 Print-out (non-normalized) mask parameters.

void pmpin_line (char *format, double par, double parlb, double parub)
 Print-out single mask parameter (including fit boundaries if needed).

void print_mask_param_in (double par[16], double parlb[16], double parub[16])
 Print-out (non-norm.) mask parameters (including fit boundaries).

void pmpout_line (char *format, double par, double epar)
 Print-out single mask parameter (including fit error if needed).

void print_mask_param_out (double par[16], double epar[16])
 Print-out (non-norm.) mask parameters (including fit errors).

int open_mask (char *maskname, TABLE *mask, char *mode)
 Open a mask table.

int read_local_model (TABLE *mask, int flag, double ***coeff)
 Read local coeffs from mask (position adjusment or sigma).


Detailed Description

Misc. procedures used by create_mask.

Copyright:
(c) 2003 CRAL-Observatoire de Lyon
Date:
Fri Mar 19 14:44:34 2004
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Revision
1.11
Id
proc_mask.c,v 1.11 2004/09/03 16:08:56 ycopin Exp

Definition in file proc_mask.c.


Define Documentation

#define LIMITS_RANGE   0.2
 

Definition at line 21 of file proc_mask.c.

Referenced by set_mask_param_limits().


Function Documentation

void norm_mask_param Channel  channel,
double  par[16]
 

Mask parameters normalization.

Definition at line 29 of file proc_mask.c.

References BLUE_CHANNEL, CCDB_NX, CCDB_NY, CCDR_NX, CCDR_NY, NB_CHANNELS, RED_CHANNEL, SNIFSB_CAM_A1, SNIFSB_CAM_A2, SNIFSB_CAM_A3, SNIFSB_CAM_E, SNIFSB_CAM_F, SNIFSB_COLL_A1, SNIFSB_COLL_A2, SNIFSB_COLL_A3, SNIFSB_COLL_E, SNIFSB_COLL_F, SNIFSB_GRISM_ANG, SNIFSR_CAM_A1, SNIFSR_CAM_A2, SNIFSR_CAM_A3, SNIFSR_CAM_E, SNIFSR_CAM_F, SNIFSR_COLL_A1, SNIFSR_COLL_A2, SNIFSR_COLL_A3, SNIFSR_COLL_E, SNIFSR_COLL_F, SNIFSR_GRISM_ANG, and UNKNOWN_CHANNEL.

Referenced by main().

void unnorm_mask_param Channel  channel,
double  par[16]
 

Mask parameters unnormalization.

Definition at line 90 of file proc_mask.c.

References BLUE_CHANNEL, CCDB_NX, CCDB_NY, CCDR_NX, CCDR_NY, NB_CHANNELS, RED_CHANNEL, SNIFSB_CAM_A1, SNIFSB_CAM_A2, SNIFSB_CAM_A3, SNIFSB_CAM_E, SNIFSB_CAM_F, SNIFSB_COLL_A1, SNIFSB_COLL_A2, SNIFSB_COLL_A3, SNIFSB_COLL_E, SNIFSB_COLL_F, SNIFSB_GRISM_ANG, SNIFSR_CAM_A1, SNIFSR_CAM_A2, SNIFSR_CAM_A3, SNIFSR_CAM_E, SNIFSR_CAM_F, SNIFSR_COLL_A1, SNIFSR_COLL_A2, SNIFSR_COLL_A3, SNIFSR_COLL_E, SNIFSR_COLL_F, SNIFSR_GRISM_ANG, and UNKNOWN_CHANNEL.

Referenced by main(), and nllsqfit_mask().

void set_mask_param_limits double  par[16],
double  parlb[16],
double  parub[16]
 

Set limits to mask parameters.

Definition at line 143 of file proc_mask.c.

References LIMITS_RANGE.

Referenced by main().

void optics2mask_param SnifsOptics optics,
double  par[16]
 

Copy mask parameters from SnifsOptics.

Definition at line 181 of file proc_mask.c.

References Grism::A, SnifsOptics::camera, SnifsOptics::center, SnifsOptics::collimator, CameraCollimator::distor, CameraCollimator::focal, SnifsOptics::grism, CameraCollimator::LateralColor, Grism::rotz, Grism::tiltx, and Grism::tilty.

Referenced by main().

void mask_param2optics double  par[16],
SnifsOptics optics
 

Copy mask parameters to SnifsOptics.

Definition at line 214 of file proc_mask.c.

References Grism::A, SnifsOptics::camera, SnifsOptics::center, SnifsOptics::collimator, CameraCollimator::distor, CameraCollimator::focal, SnifsOptics::grism, CameraCollimator::LateralColor, Grism::rotz, Grism::tiltx, and Grism::tilty.

Referenced by main(), and nllsqfit_mask().

void print_mask_param double  par[16]  ) 
 

Print-out (non-normalized) mask parameters.

Definition at line 247 of file proc_mask.c.

Referenced by nllsqfit_mask().

void pmpin_line char *  format,
double  par,
double  parlb,
double  parub
 

Print-out single mask parameter (including fit boundaries if needed).

Definition at line 266 of file proc_mask.c.

Referenced by print_mask_param_in().

void print_mask_param_in double  par[16],
double  parlb[16],
double  parub[16]
 

Print-out (non-norm.) mask parameters (including fit boundaries).

Definition at line 283 of file proc_mask.c.

References pmpin_line().

Referenced by main().

void pmpout_line char *  format,
double  par,
double  epar
 

Print-out single mask parameter (including fit error if needed).

Definition at line 314 of file proc_mask.c.

Referenced by print_mask_param_out().

void print_mask_param_out double  par[16],
double  epar[16]
 

Print-out (non-norm.) mask parameters (including fit errors).

Definition at line 331 of file proc_mask.c.

References pmpout_line().

Referenced by main().

int open_mask char *  maskname,
TABLE *  mask,
char *  mode
 

Open a mask table.

Parameters:
maskname Name of the mask
mask Mask structure
mode I/O mode (same as open_table)
Returns:
Error status

Definition at line 367 of file proc_mask.c.

Referenced by main().

int read_local_model TABLE *  mask,
int  flag,
double ***  coeff
 

Read local coeffs from mask (position adjusment or sigma).

Parameters:
mask Mask table
flag 1: dx (position adjustment), 2: sigma (X-disp.)
coeff Coefficients of the local model
Returns:
Nb of coeff. in the local model

Definition at line 401 of file proc_mask.c.

References MSK_DXNC, and MSK_SIGNC.

Referenced by main().


Generated on Tue Nov 23 18:04:21 2004 for Snifs by doxygen 1.3.3