GRAVI Pipeline Reference Manual 1.8.0
Loading...
Searching...
No Matches
Functions | Variables
gravi_utils.c File Reference
#include <cpl.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include "gravi_data.h"
#include "gravi_dfs.h"
#include "gravi_pfits.h"
#include "gravi_cpl.h"
#include "gravi_utils.h"

Go to the source code of this file.

Functions

const char * gravi_get_license (void)
 Get the pipeline copyright and license.
 
cpl_error_code gravi_msg_warning (const char *component, const char *msg)
 
cpl_table * gravi_table_oi_create (int nwave, int nrow, const char *oi_name)
 Create the oi table (oi_vis, oi_vis2, oi_t3)
 
int gravi_region_get_base (cpl_table *imaging_detector, int region)
 Return the base of a region.
 
int gravi_region_get_base_sign (cpl_table *imaging_detector, int base)
 Return the sign of a base by looking at the PORT order.
 
int gravi_region_get_pol (cpl_table *imaging_detector, int region)
 Return the polarisation id of a region.
 
int gravi_region_get_phaseid (cpl_table *imaging_detector, int region)
 Return the phase id of a region.
 
int gravi_region_get_tel (cpl_table *imaging_detector, int region, int beam)
 Return the telescope id (0,1,2,3) in a beam of a region.
 
char gravi_region_get_phase (cpl_table *imaging_detector, int region)
 Return the phase character of a region.
 
int gravi_get_region (cpl_table *img_det, int base, char phase, int pol)
 Find the region matching base, phase and pol.
 
int gravi_wave_get_nlambda (cpl_table *wave_data, double lambda_min, double lambda_max)
 Get the number of spectral element between lambdamin et lambdamax.
 
int * gravi_image_extract_dimension (cpl_image *img_profile)
 Compute startx and nx of the illuminated part of the image.
 
short gravi_sta_index (int gravi_input, cpl_table *optical_train_table, cpl_table *array_geometry_table)
 Retrieve STA_INDEX corresponding to a given input.
 
int gravi_get_shutter (cpl_propertylist *header, int tel)
 
int gravi_check_shutter (cpl_propertylist *header, int t0, int t1, int t2, int t3)
 
int gravi_get_shutter_id (cpl_propertylist *header)
 
int gravi_get_shutter_baseid (cpl_propertylist *header)
 
int gravi_data_check_shutter_beam (gravi_data **datas, int nb_datas)
 
cpl_size gravi_spectrum_get_nwave (const cpl_table *table)
 
cpl_size gravi_spectrum_get_nregion (const cpl_table *table)
 
double gravi_spectrum_get_flux (const cpl_table *table)
 Return the total flux in DATA# regions.
 
cpl_vector * gravi_compute_envelope (const cpl_vector *opd, int wave, int nwave)
 Compute the envelope value.
 
double gravi_imagelist_get_flux (const cpl_imagelist *imglist)
 Return the total flux in imagelist.
 
cpl_error_code gravi_lkdt_get_sequence (cpl_table *oi_table, cpl_size ntel, cpl_size *first, cpl_size *nobs)
 Return the longuest sequence with constant LKDT.
 
int gravi_conf_get_iss (int gravi_beam, cpl_propertylist *header)
 
const char * gravi_conf_get_telname (int gravi_beam, cpl_propertylist *header)
 
cpl_error_code gravi_dump_the_boss (double ra, double dec)
 

Variables

int GRAVI_BASE_TEL [6][2] = { {0,1}, {0,2}, {0,3}, {1,2}, {1,3}, {2,3} }
 
char GRAVI_BASE_NAME [6][3] = {"12","13","14","23","24","34"}
 
int GRAVI_TRI_BASE [6][2][2] = { {{1,3},{2,4}}, {{0,3},{2,5}}, {{0,4},{1,5}}, {{0,1},{4,5}}, {{0,2},{3,5}}, {{1,2},{3,4}}}
 
int GRAVI_TRI_SIGN [6][2][2] = { {{1,-1},{1,-1}}, {{1,1},{1,-1}}, {{1,1},{1,1}}, {{-1,1},{1,-1}}, {{-1,1},{1,1}}, {{-1,1},{-1,1}} }
 
int GRAVI_CLO_TEL [4][3] = {{0,1,2}, {0,1,3}, {0,2,3}, {1,2,3}}
 
char GRAVI_CLO_NAME [4][4] = {"123", "124", "134", "234"}
 
int GRAVI_CLO_BASE [4][3] = {{0,3,1}, {0,4,2}, {1,5,2}, {3,5,4}}
 
char GRAVI_DATA [50][7]
 
char GRAVI_DATAERR [50][10]
 
int GRAVI_LABINPUT [4] = {7,5,3,1}