High-Level Data Reduction Library 1.6.0
High-Level data reduction routines for ESO pipelines
Loading...
Searching...
No Matches
hdrl_utils.h File Reference
#include "hdrl_parameter.h"
#include "hdrl_image.h"
#include "hdrl_imagelist.h"
#include <cpl.h>
#include <stdlib.h>
#include <stdarg.h>
Include dependency graph for hdrl_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HDRL_OMP(x)
 

Enumerations

enum  hdrl_direction { HDRL_X_AXIS , HDRL_Y_AXIS , HDRL_UNDEFINED_AXIS }
 Define an image direction e.g along X or Y. More...
 
enum  hdrl_airmass_approx { HDRL_AIRMASS_APPROX_HARDIE = 1 , HDRL_AIRMASS_APPROX_YOUNG_IRVINE , HDRL_AIRMASS_APPROX_YOUNG }
 Define the kind of airmass approximation. More...
 
enum  hdrl_image_extend_method { HDRL_IMAGE_EXTEND_NEAREST = 0 , HDRL_IMAGE_EXTEND_MIRROR = 1 }
 

Functions

const char * hdrl_get_license (void)
 Get the pipeline copyright and license.
 
cpl_table * hdrl_eop_data_totable (const char *eop_data, cpl_size data_length)
 Export a raw string buffer containing EOP data to a CPL table.
 
hdrl_parameterhdrl_rect_region_parameter_create (cpl_size, cpl_size, cpl_size, cpl_size)
 Creates Rect Region Parameters object.
 
cpl_error_code hdrl_rect_region_parameter_update (hdrl_parameter *, cpl_size, cpl_size, cpl_size, cpl_size)
 Update Rect Region Parameters object.
 
cpl_boolean hdrl_rect_region_parameter_check (const hdrl_parameter *)
 Check that the parameter is hdrl_rect_region parameter.
 
cpl_size hdrl_rect_region_get_llx (const hdrl_parameter *)
 get lower left x coordinate of rectangual region
 
cpl_size hdrl_rect_region_get_lly (const hdrl_parameter *)
 get lower left y coordinate of rectangual region
 
cpl_size hdrl_rect_region_get_urx (const hdrl_parameter *)
 get upper right x coordinate of rectangular region
 
cpl_size hdrl_rect_region_get_ury (const hdrl_parameter *)
 get upper right y coordinate of rectangual region
 
cpl_error_code hdrl_rect_region_parameter_verify (const hdrl_parameter *, const cpl_size, const cpl_size)
 Verify basic correctness of the parameters.
 
cpl_parameterlist * hdrl_rect_region_parameter_create_parlist (const char *, const char *, const char *, const hdrl_parameter *)
 Create parameter list for hdrl_rect_region.
 
hdrl_parameterhdrl_rect_region_parameter_parse_parlist (const cpl_parameterlist *, const char *, const char *)
 parse parameterlist for rectangle parameters
 
cpl_boolean hdrl_is_strictly_monotonic_increasing (const double *x, cpl_size l)
 returns CPL_TRUE if x is strictly monotonic increasing
 
void hdrl_sort_on_x (double *x, double *y1, double *y2, const cpl_size sample_len, const cpl_boolean sort_decreasing)
 sort in increasing or decreasing order x. Keep aligned with y1 and y2.
 
hdrl_value hdrl_utils_airmass (hdrl_value aRA, hdrl_value aDEC, hdrl_value aLST, hdrl_value aExptime, hdrl_value aLatitude, hdrl_airmass_approx type)
 Compute the effective airmass of an observation. Takes in count the error propagation if you enter the relative error of the input parameters in a hdrl_value structure {data,error}.
 

Macro Definition Documentation

◆ HDRL_OMP

#define HDRL_OMP (   x)

Enumeration Type Documentation

◆ hdrl_airmass_approx

Define the kind of airmass approximation.

Enumerator
HDRL_AIRMASS_APPROX_HARDIE 
HDRL_AIRMASS_APPROX_YOUNG_IRVINE 
HDRL_AIRMASS_APPROX_YOUNG 

◆ hdrl_direction

Define an image direction e.g along X or Y.

Enumerator
HDRL_X_AXIS 

X axis, equivalent to NAXIS1 in FITS convention

HDRL_Y_AXIS 

Y axis, equivalent to NAXIS2 in FITS convention

HDRL_UNDEFINED_AXIS 

Reserved value for undefined direction

◆ hdrl_image_extend_method

Enumerator
HDRL_IMAGE_EXTEND_NEAREST 
HDRL_IMAGE_EXTEND_MIRROR