|
| 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_parameter * | hdrl_rect_region_parameter_create (cpl_size llx, cpl_size lly, cpl_size urx, cpl_size ury) |
| | Creates Rect Region Parameters object.
|
| |
| cpl_error_code | hdrl_rect_region_parameter_update (hdrl_parameter *rect_region, cpl_size llx, cpl_size lly, cpl_size urx, cpl_size ury) |
| | Update Rect Region Parameters object.
|
| |
| cpl_boolean | hdrl_rect_region_parameter_check (const hdrl_parameter *self) |
| | Check that the parameter is hdrl_rect_region parameter.
|
| |
| cpl_size | hdrl_rect_region_get_llx (const hdrl_parameter *p) |
| | get lower left x coordinate of rectangual region
|
| |
| cpl_size | hdrl_rect_region_get_lly (const hdrl_parameter *p) |
| | get lower left y coordinate of rectangual region
|
| |
| cpl_size | hdrl_rect_region_get_urx (const hdrl_parameter *p) |
| | get upper right x coordinate of rectangular region
|
| |
| cpl_size | hdrl_rect_region_get_ury (const hdrl_parameter *p) |
| | get upper right y coordinate of rectangual region
|
| |
| cpl_error_code | hdrl_rect_region_parameter_verify (const hdrl_parameter *param, const cpl_size max_x, const cpl_size max_y) |
| | Verify basic correctness of the parameters.
|
| |
| cpl_parameterlist * | hdrl_rect_region_parameter_create_parlist (const char *base_context, const char *prefix, const char *name_prefix, const hdrl_parameter *defaults) |
| | Create parameter list for hdrl_rect_region.
|
| |
| hdrl_parameter * | hdrl_rect_region_parameter_parse_parlist (const cpl_parameterlist *parlist, const char *base_context, const char *name_prefix) |
| | parse parameterlist for rectangle parameters
|
| |
| cpl_error_code | hdrl_rect_region_fix_negatives (hdrl_parameter *rect_region, const cpl_size nx, const cpl_size ny) |
| | wrap negative or zero coordinates around full image size
|
| |
| 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.
|
| |
| char * | hdrl_join_string (const char *sep_, int n,...) |
| | join strings together
|
| |
| 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}.
|
| |
This module contain various utilities functions that might be used in several of the HDRL modules.
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}.
The function calculates the average airmass for the line of sight given by the right ascension (ra) and the declination (dec). The latitude (geolat) in degrees of the observatory site and the local siderial time (lst) at observation start has to be given, as well as the duration of the observation, i.e. the exposure time (exptime). If the exposure time is zero then only one value of airmass is computed, instead of weighting beginning, middle, and end of exposure according to Stetson (Stetson P., 1987, PASP 99, 191).
- Parameters
-
| aRA | right ascension in degrees |
| aDEC | declination in degrees |
| aLST | local sideral time (s.) elapsed since siderial midnight |
| aExptime | integration time in seconds |
| aLatitude | latitude of the observatory site in degrees |
| type | kind of approximation (see hdrl_airmass_approx enumtype) |
- Returns
- The computed average airmass or {-1,0.} on error.
- Note
- This function can be calcule different kinds of approximation specified in the hdrl_airmass_approx enum type, explain as follow. 1) The formula given by Hardie (Hardie 1962, In: "Astronomical Techniques", ed. Hiltner, p. 184) to compute the airmass as a function of zenith distance. 2) The formula of Young and Irvine (Young A. T., Irvine W. M., 1967, Astron. J. 72, 945). The range of trustworthy airmass outputs is only between 1 and 4. 3) The formula of Young (Young A. T., 1994 ApOpt, 33, 1108).
-
You can to find in Interpolative formulas an interesting collection of approximations.